Hi
On 23/03/13 03:07, ronfulkerson wrote:
Hello,
I am trying to produce a JSON message using JAX-RS with CXF (version
camel-cxf 2.10.3 / cxf 2.6.3). When trying to produce some JSON messages, I
am presented the following exception: JAXBException occurred : property
"com.sun.xml.internal.bind.namespacePrefixMapper" must be an instance of
type com.sun.xml.internal.bind.marshaller.NamespacePrefixMapper, not
org.apache.cxf.common.jaxb.NamespaceMapper
If I choose to produce XML this message is not produced. I am using only
@XmlRootElement and @XmlElement annotations, nothing more.
Any advice on how to prevent / fix the above exception? Thanks in advance!
Looks like you have a strict JAXB implementation loaded which enforces
that the mapper registered with the internal
"com.sun.xml.internal.bind.namespacePrefixMapper" property.
JSONProvider registers a mapper if its namespace map is initialized, so
that the prefixes the runtime generates matches those provided in the
map...
must not be a third party implementation.
What JAXB version is it ?
Dan, have you heard of this issue before ?
Thanks, Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-JSON-Binding-Exception-tp5725065.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