Sergey,


I also wanted to make a note of something, I am having this problem when
running my project from eclipse. I just had something else interesting
happen that my lead to a solution:

I added these to my JSONProvider config:

<property name="marshallAsJaxbElement" value="true"/>
<property name="unmarshallAsJaxbElement" value="true" />

And now the writeTo method gets called in JSONProvider, but returns with the
following exception after trying to create a Marshaller:

 JAXBException occurred : ClassCastException: attempting to cast
jar:file:/C:/Java/jdk1.7.0_21/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class
to bundleresource://25.fwk1172769370/javax/xml/bind/JAXBContext.class. 
Please make sure that you are specifying the proper ClassLoader.





--
View this message in context: 
http://cxf.547215.n5.nabble.com/JaxRs-Yet-another-Unmarshall-Marshall-issue-with-CXF-2-7-2-tp5729213p5729235.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to