`

找不到org.apache.ws.commons.schema.resolver.URIResolver

阅读更多

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)

... 38 more

Caused by: java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver

at org.apache.cxf.jaxws.JaxWsServerFactoryBean.<init>(JaxWsServerFactoryBean.java:73)

at org.apache.cxf.jaxws.EndpointImpl.<init>(EndpointImpl.java:160)

at org.apache.cxf.jaxws.EndpointImpl.<init>(EndpointImpl.java:153)

at org.apache.cxf.jaxws.EndpointImpl.<init>(EndpointImpl.java:167)

at org.apache.cxf.jaxws.EndpointImpl.<init>(EndpointImpl.java:174)

at org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl.<init>(EndpointDefinitionParser.java:207)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)

... 40 more

Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.resolver.URIResolver

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

... 51 more

 

解决方案:

 将CXF安装目录下lib/xmlschema-core-2.0.3.jar加到项目的classpath中就解决了

 

更多IT技术请浏览:www.hxstrive.com

分享到:
评论

相关推荐

    org.apache.commons.jar包官方免费版(附下载地址)

    解决Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils 类似错误,需要导入jar包,下载地址是http://commons.apache.org/proper/commons-io/download_io.cgi

    XFire Web Service

    1. **数据存储**:使用静态List存储数据,这一步需要在服务端初始化时加载所有数据到List中。 2. **API设计**:定义Web服务接口,如GET和POST方法,以供前台调用。这些接口可能包括获取全部数据、按条件查询、添加新...

    271个java需要用的jar包

    com.springsource.org.apache.commons.logging-1.1.1.jar com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar commons-beanutils-1.8.0.jar commons-beanutils-1.8.3.jar commons-chain-1.2.jar commons-codec-...

    apache-cxf-2.1.3

    commons-logging-1.1.jar geronimo-activation_1.1_spec-1.0-M1.jar (or Sun's Activation jar) geronimo-annotation_1.0_spec-1.1.jar (JSR 250) geronimo-javamail_1.4_spec-1.0-M1.jar (or Sun's JavaMail jar...

    AXIS2实现webservice jar包

    apache-mime4j-core-0.7.2.jar axiom-api-1.2.20.jar axiom-dom-1.2.20.jar axiom-impl-1.2.20.jar axiom-jaxb-1.2.20.jar axis2-adb-1.7.4.jar axis2-adb-codegen-1.7.4.jar axis2-clustering-1.7.4.jar axis2-...

    搭建WebService服务器

    更详细的使用指南可参考:[http://cxf.apache.org/docs/writing-a-service-with-spring.html](http://cxf.apache.org/docs/writing-a-service-with-spring.html)。 3. **发布J.Office的Service类为Service** 要...

Global site tag (gtag.js) - Google Analytics