cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christoe <>
Subject Message body reader for JAXB
Date Sun, 07 Jun 2009 11:27:57 GMT


I'm trying to get my RESTful web service methods to work, but I keep getting
these errors:

Jun 7, 2009 1:07:27 PM org.apache.cxf.jaxrs.utils.JAXRSUtils
WARNING: .No message body reader found for request class : User, ContentType
: application/xml.
Jun 7, 2009 1:07:27 PM
org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
WARNING: WebApplicationException has been caught : no cause is available

To put this more into context, code snippets can be found at:

The entity-bean User is automatically generated by JAXB, and therefore I
expected it to work out of the box with the CXF JAXBElementProvider. However
this does not seem to be the case. What is causing these problems? Are the
entity-beans missing some annotation so that the Message body reader does
not recognize it? Can the fact that the entity-beans/web service and the
software initializing the service have different context paths have anything
to do with it?

Thankful for any response,

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message