So I have put together a test case using the Bookstore classes from
systests/jaxrs.  These classes are unmodified, but packaged as an OSGi
bundle and accessed via a Camel route.  I am not sure this is the exact
problem I am encountering, but it produces the same exception so it will
hopefully be a good place to start.Please download the test from  here
<https://bitbucket.org/ronfulkerson/stash/downloads/cxf-camel-test.zip>  . 
I deploy using 'mvn install', then from servicemix invoking 'install -s
mvn:cxf-camel-test/cxf-camel-test'.  I have tested with servicemix 4.5.0 and
various JDK's (including JDK 1.7.u14).The exception for this test is thrown
after the 'books/xsitype' URL is hit:$ curl -s -X GET
http://localhost:8080/cxf/books/123{"Book":{"id":123,"name":"CXF in
Action"}}$ curl -s -X GET http://localhost:8080/cxf/books/xsitype<?xml
version="1.0" encoding="UTF-8" standalone="yes"?>999SuperBook$ curl -s -X
GET http://localhost:8080/cxf/books/123JAXBException 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.It is interesting to me that the
'books/{id}' URL initially works, but not after 'books/xsitype' has been
accessed.Again, thank you for your input!



--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-JSON-Binding-Exception-tp5725065p5725330.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to