在eclipse下发布webservice,纠错

最开始根据http://blog.csdn.net/xw13106209/article/details/7049614#comments这篇博客进行编写配置,运行的时候出现org.apache.ws.commons.schema.resolver.URIResolver  错误,缺少xmlschma.jar这个包,

从axis2中lib文件夹下,然后新建webservice,配置是要将3.1改为2.5,然后一步一步next最后出现这个错误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;

就是在这个地方纠结了很久,用了很多种方法,最后没法,重新新建项目什么重新加载之后成功运行。要记得修改web.xml中AxisAdminServlet的<servlet-class>项为:org.apache.axis2.webapp.AxisAdminServlet

猜你喜欢

转载自blog.csdn.net/u013305783/article/details/50960953