[jboss-as7-dev] [Resteasy-developers] NoMessageBodyWriterFoundFailure when migrating to JBoss 7
Stuart Douglas
stuart.w.douglas at gmail.com
Wed Jun 22 09:21:13 EDT 2011
It should be fixed in AS7 master now, and I have added some integration tests for these scenarios.
Stuart
On 22/06/2011, at 11:08 PM, Bill Burke wrote:
> Thanks, it would probably take me at least a week to fix this problem as I would have to figure out all the new deployment mechanisms.
>
> On 6/21/11 5:36 PM, Stuart Douglas wrote:
>>
>> At a guess I would say that because the JAX-RS annotations are in an EJB jar JAX-RS support is only being added to the jar instead of to all modules in the deployment.
>>
>> I will fix this ASAP.
>>
>> Stuart
>>
>> On 22/06/2011, at 5:44 AM, Bill Burke wrote:
>>
>>> So, how can this be fixed? Any reason the resteasy jars can't be
>>> included by default? Including the dependencies in the manifest is not
>>> an option, IMO. Users shouldn't have to edit manifest files just to
>>> deploy something.
>>>
>>> On 6/21/11 3:25 PM, Scott Stark wrote:
>>>> Here is a thread on what I had to do to get a resteasy app working:
>>>> http://lists.jboss.org/pipermail/jboss-as7-dev/2011-June/002305.html
>>>>
>>>> I'll create a jira issue for this as I'm putting together a resteasy
>>>> sample for the openshift express as7 cartridge.
>>>>
>>>> On 6/21/11 11:53 AM, Jaikiran Pai wrote:
>>>>> Being discussed here http://community.jboss.org/message/611170#611170
>>>>>
>>>>> -Jaikiran
>>>>> On Wednesday 22 June 2011 12:10 AM, Bill Burke wrote:
>>>>>> 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.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> jboss-as7-dev mailing list
>>>> jboss-as7-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>>
>>> --
>>> Bill Burke
>>> JBoss, a division of Red Hat
>>> http://bill.burkecentral.com
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
More information about the jboss-as7-dev
mailing list