[jboss-as7-dev] [Resteasy-developers] NoMessageBodyWriterFoundFailure when migrating to JBoss 7
Bill Burke
bburke at redhat.com
Tue Jun 21 14:40:43 EDT 2011
I haven't touched AS7 yet, somebody else did the integration. You're
gonna have to ask on the AS7 list
On 6/21/11 2:12 PM, Juergen Zimmermann wrote:
> I'm trying to migrate a part of an EAR to JBoss 7 (Jenkins build 1241). The
> EAR contains an EJB module with session beans, and some session beans are
> impl classes for interfaces with JAX-RS annotations (@Path, @GET, ...). The
> web module just consists of web.xml declaring some functionality for
> RESTEasy. I inserted into the META-INF/Manifest.MF file the following lines,
> but get a stacktrace (see below) when a GET request is submitted.
>
> Addition to the web module's Manifest.MF:
> Dependencies: org.jboss.resteasy.resteasy-jaxrs,
> org.jboss.resteasy.resteasy-jaxb-provider,
> org.jboss.resteasy.resteasy-jackson-provider,
> org.jboss.resteasy.async-http-servlet-30,
> org.jboss.resteasy.resteasy-cdi,
> org.jboss.resteasy.resteasy-multipart-provider
>
> Stacktrace for GET request:
> [org.jboss.resteasy.core.SynchronousDispatcher]
> (http-127.0.0.1-127.0.0.1-8080-2) Failed executing GET
> /kundenverwaltung/kunden/1:
> org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find
> MessageBodyWriter for response object of type:
> de.swe1.kundenverwaltung.domain.Privatkunde of media type: application/xml
> at
> org.jboss.resteasy.core.ServerResponse.writeTo(ServerResponse.java:202)
> [file:C:%5CSoftware%5Cjboss-7.0.0.CR1-b1241%5Cmodules%5Corg%5Cjboss%5Crestea
> sy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:]
> at
> org.jboss.resteasy.core.SynchronousDispatcher.writeJaxrsResponse(Synchronous
> Dispatcher.java:563)
> [file:C:%5CSoftware%5Cjboss-7.0.0.CR1-b1241%5Cmodules%5Corg%5Cjboss%5Crestea
> sy%5Cresteasy-jaxrs%5Cmain%5Cresteasy-jaxrs-2.1.0.GA.jar:]
> ...
>
> The message body writers for JAXB/XML are included in the
> resteasy-jaxb-provider module. Any hint is appreciated.
>
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Resteasy-developers mailing list
> Resteasy-developers at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
More information about the jboss-as7-dev
mailing list