paavochan 2016-09-23 06:50 采纳率: 60%
浏览 1133
已采纳

请教大神指导 使用 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 2016-09-24 15:29
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 swiftui @query 报错
  • ¥50 怎么解决刷卡或扫码后,点击软件输入框,win10屏幕键盘不会自动弹出的问题
  • ¥15 如何使用arcgispro的训练深度模型,发现water和nowater精度为0?(相关搜索:深度学习)
  • ¥20 matlab作业不太懂呀有问题能给个代码吗
  • ¥15 自制电路图为何无法驱动ESP01S?
  • ¥15 前端加access数据库
  • ¥15 ARCGIS 多值提取到点 ERROR 999999
  • ¥15 mysql异常断电, [MY-011971] [InnoDB]
  • ¥15 uni.onBluetoothDeviceFound熄屏不运行
  • ¥15 求PHDA糖尿病并发症数据集,有偿