2 theuncle theUncle 于 2016.09.23 14:50 提问

请教大神指导 使用 CXF 做 webservice 简单例子 报错

我本地是写的一个java的做的测试,参照的地址:
http://www.cnblogs.com/frankliiu-java/articles/1641949.html

运行后就提示下面的错误
web service start
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/schema/extensions/ExtensionSerializer
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.(JaxWsServerFactoryBean.java:68)
at org.apache.cxf.jaxws.EndpointImpl.(EndpointImpl.java:148)
at org.apache.cxf.jaxws.EndpointImpl.(EndpointImpl.java:158)
at org.apache.cxf.jaxws.spi.ProviderImpl.createEndpointImpl(ProviderImpl.java:112)
at org.apache.cxf.jaxws22.spi.ProviderImpl.createEndpointImpl(ProviderImpl.java:48)
at org.apache.cxf.jaxws.spi.ProviderImpl.createEndpoint(ProviderImpl.java:121)
at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:143)
at javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at com.demo.webServiceApp.main(webServiceApp.java:10)
Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.extensions.ExtensionSerializer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 9 more

1个回答

dabocaiqq
dabocaiqq   2016.09.24 23:29
已采纳
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!