cxf-users mailing list archives

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

Hi,

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
readFromMessageBody
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:
http://pastebin.com/m63d132ee

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,

/Christoffer
-- 
View this message in context: http://www.nabble.com/Message-body-reader-for-JAXB-tp23910035p23910035.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message