I guess you're experiencing this problem: http://www.mkyong.com/webservices/jax-rs/illegal-to-inject-a-message-body-into-a-singleton-into-public-org-codehaus-jackson-jaxrs-jacksonjsonprovider/ https://issues.jboss.org/browse/RESTEASY-503
Bill, maybe it's worth adding your suggested workaround to RESTEASY-503? On 24 October 2011 18:40, <[email protected]> wrote: > Then it works, but then the JacksonJsonProvider implementation is used, but > I want JacksonJaxbJsonProvider implementation. > > On Mon, Oct 24, 2011 at 16:58, Bill Burke <[email protected]> wrote: >> >> Does it work if you *don't* add jackson provider.jar to your web-inf/lib? >> It comes packaged with AS7 already. >> >> On 10/24/11 10:30 AM, [email protected] wrote: >>> >>> Yes, of course: >>> sample.war/WEB-INF/lib/resteasy-jackson-provider-2.2.2.GA.jar >>> >>> On Mon, Oct 24, 2011 at 16:20, Bill Burke <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> So you added jackson provider .jar to your WEB-INF/lib? >>> >>> On 10/24/11 9:26 AM, [email protected] <mailto:[email protected]> wrote: >>> > I used this archetype to generate a sample project: >>> > >>> > >>> >>> https://docs.jboss.org/author/display/AS7/Creating+your+own+application >>> > >>> > I have JBoss AS 7.0.1. The example works well (as you can see, no >>> > web.xml is used). But when trying to add resteasy jackson >>> provider, the >>> > aforementioned problems appear. Any clues? >>> > >>> > Thanks! >>> > >>> > On Mon, Oct 24, 2011 at 14:56, Bill Burke <[email protected] >>> <mailto:[email protected]> >>> > <mailto:[email protected] <mailto:[email protected]>>> wrote: >>> > >>> > How can I reproduce the problem? What app server? What does >>> your >>> > web.xml look like? >>> > >>> > Thanks >>> > >>> > >>> > >>> > >>> >>> ------------------------------------------------------------------------------ >>> > The demand for IT networking professionals continues to grow, and >>> the >>> > demand for specialized networking skills is growing even more >>> rapidly. >>> > Take a complimentary Learning@Cisco Self-Assessment and learn >>> > about Cisco certifications, training, and career opportunities. >>> > http://p.sf.net/sfu/cisco-dev2dev >>> > >>> > >>> > >>> > _______________________________________________ >>> > Resteasy-users mailing list >>> > [email protected] >>> <mailto:[email protected]> >>> > https://lists.sourceforge.net/lists/listinfo/resteasy-users >>> >>> -- >>> Bill Burke >>> JBoss, a division of Red Hat >>> http://bill.burkecentral.com >>> >>> >>> ------------------------------------------------------------------------------ >>> The demand for IT networking professionals continues to grow, and the >>> demand for specialized networking skills is growing even more rapidly. >>> Take a complimentary Learning@Cisco Self-Assessment and learn >>> about Cisco certifications, training, and career opportunities. >>> http://p.sf.net/sfu/cisco-dev2dev >>> _______________________________________________ >>> Resteasy-users mailing list >>> [email protected] >>> <mailto:[email protected]> >>> https://lists.sourceforge.net/lists/listinfo/resteasy-users >>> >>> >> >> -- >> Bill Burke >> JBoss, a division of Red Hat >> http://bill.burkecentral.com >> > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Resteasy-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/resteasy-users > > ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Resteasy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/resteasy-users
