Hi,

I am migrating my jee server app to use cxf 2.3.11. App is installed in WAS
8.0.3

When initializing a webservice bean, I am getting the below exception.

Caused by: javax.xml.bind.JAXBException
 - with linked exception:
[java.lang.reflect.InvocationTargetException]
        at org.apache.cxf.jaxb.JAXBUtils.createRIContext(JAXBUtils.java:577)
        at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:410)
        ... 150 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:611)
        at org.apache.cxf.jaxb.JAXBUtils.createRIContext(JAXBUtils.java:575)
        ... 151 more
Caused by: java.lang.ClassCastException:
com.aa.xxxx.xxxxwebservice.CheckLock$JaxbAccessorF_requestXml incompatible
with com.sun.xml.bind.v2.runtime.reflect.Accessor
        at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:199)
        at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:191)


When I remove the jaxb-impl-2.2.4-1.jar from my EAR, the error vanishes.

Can someone please suggest me the right solution for this problem?

thanks.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Exception-when-using-jaxb-impl-2-2-4-1-jar-with-cxf-2-3-11-tp5710127.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to