Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
109 views
in Technique[技术] by (71.8m points)

java - Eclipse Server Services encounters an error

Note: Yes I have followed all of the other similar issues, I've downloaded 10+ .jars and tossed them into the lib file. nothing worked.

Note2: I am using eclipse 2020, jdk1.8, tomcat7.0.107, axis2-1.7.9

I have no idea what I'm doing but my university teacher says I need to follow this YouTube guide from 2014 for my 2021 IWS class. https://www.youtube.com/watch?v=lgY0pLadraE Unfortunately, everytime when I get to the 1:20 mark where I run my method on the server I get this ridiculous error.

 Jan 23, 2021 10:02:26 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/7.0.107
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Nov 18 2020 12:18:55 UTC
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 7.0.107.0
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 10
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.0
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:UsersJohnathan Nichols.p2poolpluginsorg.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507jre
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           15.0.1+9-18
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:UsersJohnathan Nicholseclipse-workspace.metadata.pluginsorg.eclipse.wst.server.coremp0
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:Javaapache-tomcat-7.0.107
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:UsersJohnathan Nicholseclipse-workspace.metadata.pluginsorg.eclipse.wst.server.coremp0
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:Javaapache-tomcat-7.0.107
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:UsersJohnathan Nicholseclipse-workspace.metadata.pluginsorg.eclipse.wst.server.coremp0wtpwebapps
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:+ShowCodeDetailsInExceptionMessages
Jan 23, 2021 10:02:27 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [C:UsersJohnathan Nichols.p2poolpluginsorg.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507jrein;C:WindowsSunJavain;C:Windowssystem32;C:Windows;C:/Users/Johnathan Nichols/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/Johnathan Nichols/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:/Users/JOHNAT~1/AppData/Local/Temp/eoi6AB9.tmp//plugins/org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/JOHNAT~1/AppData/Local/Temp/eoi6AB9.tmp//plugins/org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesMicrosoft SQL ServerClient SDKODBC170ToolsBinn;C:Javajdk1.8in;C:UsersJohnathan NicholsAppDataLocalMicrosoftWindowsApps;C:UsersJohnathan Nichols.dotnetools;C:UsersJohnathan NicholsAppDataLocalatomin;C:Javajdk1.8;%JAVA_HOME%in;;C:UsersJohnathan NicholsDownloads;;C:UsersJohnathan NicholsDownloads;;.]
Jan 23, 2021 10:02:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 23, 2021 10:02:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 361 ms
Jan 23, 2021 10:02:27 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jan 23, 2021 10:02:27 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.107
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase$1 (file:/C:/Java/apache-tomcat-7.0.107/lib/catalina.jar) to method java.lang.ClassLoader.registerAsParallelCapable()
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jan 23, 2021 10:02:27 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFO: validateJarFile(C:UsersJohnathan Nicholseclipse-workspace.metadata.pluginsorg.eclipse.wst.server.coremp0wtpwebappsAddServiceServerWEB-INFlibservlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Jan 23, 2021 10:02:28 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[WARN] Web application uses org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to use org.apache.axis2.webapp.AxisAdminServlet instead
[INFO] Clustering has been disabled
[WARN] Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer; see debug logs for more details
Jan 23, 2021 10:02:28 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver
    at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:128)
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)
    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
    at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:264)
    at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:66)
    at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:61)
    at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:152)
    at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:233)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
    at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:622)
    at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
    at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:120)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1240)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1184)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1078)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5380)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1689)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1679)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1951)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1795)
    ... 24 more

Jan 23, 2021 10:02:28 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet [AxisAdminServlet] in web application [/AddServiceServer] threw load() exception
java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1951)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1795)
    at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:128)
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)
    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
    at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:264)
    at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:66)
    at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:61)
    at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:152)
    at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:233)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
    at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:622)
    at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
    at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:120)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1240)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1184)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1078)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5380)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1689)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1679)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)

Jan 23, 2021 10:02:28 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

ClassNotFoundException and NoClassDefFoundException usually mean that your are missing a library. In your case the classes in the org.apache.ws.commons.schema are part of XmlSchema.jar.

Check out the dependencies of your version of Axis2, e.g. on Maven Repository and add the appropriate version of XmlSchema.jar to your project.

Edit: you can also download the entire Axis2 binary distribution and add all jars to your WEB-INF/lib folder.

A better alternative would be to use Maven or gradle as your build tool. This way you'll never miss a dependency.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...