Presently, I tried using old versions of JAXB implementations, everything works smooth
Here's maven dependency tree
[INFO] | +- org.apache.cxf:apache-cxf:pom:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-bundle:jar:2.7.10:compile
[INFO] | | +- org.apache.velocity:velocity:jar:1.7:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | | +- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | | +- org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | | +- org.apache.geronimo.specs:geronimo-jaxws_2.2_spec:jar:1.1:compile
[INFO] | | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[INFO] | | +- org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[INFO] | | +- org.eclipse.jetty:jetty-server:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-continuation:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] | | +- org.eclipse.jetty:jetty-security:jar:8.1.14.v20131031:compile
[INFO] | | +- org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0:compile
[INFO] | | +- org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
[INFO] | | +- org.springframework:spring-jms:jar:3.0.7.RELEASE:compile
[INFO] | | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +- org.springframework:spring-aop:jar:3.0.7.RELEASE:compile
[INFO] | | +- org.springframework:spring-tx:jar:3.0.7.RELEASE:compile
[INFO] | | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | +- org.apache.httpcomponents:httpcore-nio:jar:4.2.4:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[INFO] | | +- org.apache.httpcomponents:httpasyncclient:jar:4.0-beta3:compile
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[INFO] | | +- org.apache.mina:mina-core:jar:2.0.7:compile
[INFO] | | +- rhino:js:jar:1.7R2:compile
[INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[INFO] | | +- net.oauth.core:oauth:jar:20100527:compile
[INFO] | | +- net.sf.ehcache:ehcache-core:jar:2.5.1:compile
[INFO] | | +- org.opensaml:opensaml:jar:2.5.1-1:compile
[INFO] | | +- org.opensaml:openws:jar:1.4.2-1:compile
[INFO] | | +- org.opensaml:xmltooling:jar:1.3.2-1:compile
[INFO] | | +- joda-time:joda-time:jar:1.6.2:compile
[INFO] | | \- org.apache.neethi:neethi:jar:3.0.3:compile
[INFO] | +- org.apache.cxf:cxf-tools-wadlto-jaxrs:jar:2.7.10:compile
[INFO] | +- org.apache.cxf.xjc-utils:cxf-xjc-runtime:jar:2.6.2:compile
[INFO] | +- org.apache.cxf.xjcplugins:cxf-xjc-dv:jar:2.6.2:compile
[INFO] | +- org.apache.cxf.xjcplugins:cxf-xjc-ts:jar:2.6.2:compile
[INFO] | +- org.apache.cxf:cxf-rt-features-clustering:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-transports-udp:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-transports-http-hc:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-wstx-msv-validation:jar:2.7.10:compile
[INFO] | | \- net.java.dev.msv:msv-core:jar:2011.1:compile
[INFO] | | +- com.sun.msv.datatype.xsd:xsdlib:jar:2010.1:compile
[INFO] | | +- isorelax:isorelax:jar:20030108:compile
[INFO] | | \- relaxngDatatype:relaxngDatatype:jar:20020414:compile
[INFO] | +- org.apache.cxf:cxf-rt-ws-mex:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-extension-providers:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-extension-search:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-security-cors:jar:2.7.10:compile
[INFO] | +- org.apache.cxf:cxf-rt-rs-security-xml:jar:2.7.10:compile
[INFO] | +- org.apache.cxf.services.sts:cxf-services-sts-core:jar:2.7.10:compile
[INFO] | +- org.apache.cxf.services.wsn:cxf-services-wsn-api:jar:2.7.10:compile
[INFO] | +- org.codehaus.jettison:jettison:jar:1.3.5:compile
[INFO] | +- asm:asm:jar:3.3.1:compile
[INFO] | +- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.13:compile
[INFO] | \- org.springframework:spring-web:jar:3.0.7.RELEASE:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.2.5:compile
[INFO] +- javax.xml.bind:jaxb-api:jar:2.2.5:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.1:compile
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.1:compile
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.1:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.7:compile
[INFO] \- org.apache.logging.log4j:log4j-1.2-api:jar:2.1:compile
Maven pom.xml
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.5</version>
</dependency>
I wanted to upgrade the old versions to new ones.
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2.11</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.12</version>
</dependency>
Now I am getting these exceptions!
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.model.annotation.AnnotationReader
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
In fact, this dependency marked as old Old JAXB Runtime module
. I tried glassfish jaxb, still same error.
Why upgrading to new version should be breaking this?
No comments:
Post a Comment