Hi Neil

Thanks, I wonder if it is actually a CL loader issue after all ?
While you are there, can you check why ProviderFactory returns null ?

The actual JSON tests all work OK in CXF, so I wonder what is wrong. I'm going to double check it before DOSGi 1.5 is out too

Cheers, Sergey
On 13/06/13 21:51, NCorbet wrote:
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.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to