eclipse+axis2发布webservice出错

黑尾土拨鼠 2016-03-21 03:27:03
[INFO] The version-1.7.1.aar service, which is not valid, caused java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm.schemaValueOf(Ljava/lang/String;)Lorg/apache/ws/commons/schema/XmlSchemaForm;
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.getAttrFormDefaultSetting(DefaultSchemaGenerator.java:1611)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.getXmlSchema(DefaultSchemaGenerator.java:1535)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.createSchemaTypeForFault(DefaultSchemaGenerator.java:1459)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processException(DefaultSchemaGenerator.java:541)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:378)
at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:313)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:469)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154)
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.repository.util.WSInfoList.update(WSInfoList.java:164)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:289)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
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.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4923)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5215)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1798)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
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)

在eclipse中运行出错
...全文
324 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
家里敷泥呀 2016-03-22
  • 打赏
  • 举报
回复
引用 2 楼 u013305783 的回复:
不是这个原因,我试了反而出现其他错误
把你的错误信息贴出来。 另外,NoSuchMethodError很大一个可能是包版本问题。
黑尾土拨鼠 2016-03-22
  • 打赏
  • 举报
回复
黑尾土拨鼠 2016-03-22
  • 打赏
  • 举报
回复
黑尾土拨鼠 2016-03-22
  • 打赏
  • 举报
回复
不是这个原因,我试了反而出现其他错误
黑尾土拨鼠 2016-03-22
  • 打赏
  • 举报
回复
[INFO] The version-1.7.1.aar service, which is not valid, caused java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm.schemaValueOf(Ljava/lang/String;)Lorg/apache/ws/commons/schema/XmlSchemaForm;
chenzeyi_java 2016-03-21
  • 打赏
  • 举报
回复
我这里的原因是包没导全,把axis2 lib下面的xmlschema-core-2.2.1.jar加到工程buildpath里面

23,405

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧