Axis2 工作不正常
Axis2 is not working properly
当我尝试访问 Services、Validate 和 Administration link在部署我的 Axis2 Web 应用程序的 URL http://localhost:82/SOAPDemo/
上,出现以下错误:
Servlet.init() for servlet AxisServlet threw exception
在后端,当 apache tomcat 7 在 eclipse 中启动时,它向我显示以下警告:
[WARN] Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer;
我可能遇到了同样的问题,这是调用堆栈:
[WARN] Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer; see debug logs for more details
avr. 28, 2016 6:27:14 PM org.apache.catalina.core.ApplicationContext log
GRAVE: 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:144)
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:620)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
... 24 more
我用旧的 axis2 1.6.4 而不是 1.7.1 安装和新项目创建修复了它
我通过在类路径中添加 axis2-jaxws.jar 解决了这个问题。
您可以将它与 Maven 集成:http://mvnrepository.com/artifact/org.apache.axis2/axis2-jaxws
我在用axis2 1.7.9的时候遇到了同样的问题,然后我试着按照
- “我通过在类路径中添加 axis2-jaxws.jar 解决了这个问题。您可以将它与 maven 集成:http://mvnrepository.com/artifact/org.apache.axis2/axis2-jaxws",Pierre-Yves Le Dévéhat
的解决方案
但是没有用。然后我尝试了
- “我可能遇到了同样的问题,这是调用堆栈:”->
- “我用旧的 axis2 1.6.4 而不是 1.7.1 安装和新项目创建修复它”,由 user6140506 解决,由 TeWu 编辑
那么错误就解决了。
axis2 1.6.4 正在为我工作...
当我尝试访问 Services、Validate 和 Administration link在部署我的 Axis2 Web 应用程序的 URL http://localhost:82/SOAPDemo/
上,出现以下错误:
Servlet.init() for servlet AxisServlet threw exception
在后端,当 apache tomcat 7 在 eclipse 中启动时,它向我显示以下警告:
[WARN] Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer;
我可能遇到了同样的问题,这是调用堆栈:
[WARN] Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer; see debug logs for more details
avr. 28, 2016 6:27:14 PM org.apache.catalina.core.ApplicationContext log
GRAVE: 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:144)
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:620)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
... 24 more
我用旧的 axis2 1.6.4 而不是 1.7.1 安装和新项目创建修复了它
我通过在类路径中添加 axis2-jaxws.jar 解决了这个问题。 您可以将它与 Maven 集成:http://mvnrepository.com/artifact/org.apache.axis2/axis2-jaxws
我在用axis2 1.7.9的时候遇到了同样的问题,然后我试着按照
- “我通过在类路径中添加 axis2-jaxws.jar 解决了这个问题。您可以将它与 maven 集成:http://mvnrepository.com/artifact/org.apache.axis2/axis2-jaxws",Pierre-Yves Le Dévéhat 的解决方案
但是没有用。然后我尝试了
- “我可能遇到了同样的问题,这是调用堆栈:”->
- “我用旧的 axis2 1.6.4 而不是 1.7.1 安装和新项目创建修复它”,由 user6140506 解决,由 TeWu 编辑
那么错误就解决了。
axis2 1.6.4 正在为我工作...