Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3
-
None
-
Advanced
Description
I'm trying out the Aegis databinding with CXF, and have therefore excluded the JAXB databinding jars from the classpath for my Jetty server. I get the following exception when the server beans is instantantiated. Obviously it works fine with the JAXB databinding jars on the classpath.
2010-04-07 19:01:30,532 [main] WARN org.eclipse.jetty.util.log - Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xx.yy.zz.XYZ#0' defined in class path resource [WEB-INF/spring/applicationContext-cxf.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/cxf/jaxb/JAXBDataBinding:
java.lang.ClassNotFoundException: org.apache.cxf.jaxb.JAXBDataBinding
at java.net.URLClassLoader$1.run(Unknown Source) [na:1.6.0_16]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_16]
at java.net.URLClassLoader.findClass(Unknown Source) [na:1.6.0_16]
at java.lang.ClassLoader.loadClass(Unknown Source) [na:1.6.0_16]
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [na:1.6.0_16]
at java.lang.ClassLoader.loadClass(Unknown Source) [na:1.6.0_16]
at java.lang.ClassLoader.loadClassInternal(Unknown Source) [na:1.6.0_16]
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:553) [cxf-rt-frontend-jaxws-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:529) [cxf-rt-frontend-jaxws-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:474) [cxf-rt-frontend-simple-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:565) [cxf-rt-frontend-jaxws-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:543) [cxf-rt-frontend-simple-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:280) [cxf-rt-frontend-simple-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:182) [cxf-rt-frontend-jaxws-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) [cxf-rt-frontend-simple-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:148) [cxf-rt-frontend-simple-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:171) [cxf-rt-frontend-jaxws-2.3.0-SNAPSHOT.jar:2.3.0-SNAPSHOT]