hmm, the class name should match the rest service Note: funny but i scheduled last week a post about it -> http://rmannibucau.wordpress.com/2012/10/04/jax-rsjax-ws-configuration-for-tomee-1-5-0/
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2012/10/4 netname <[email protected]> > >> if you manage to share some maven war project (github or sthg else) i > could > >> give it a look (but i'm a bit time boxed these days) > > Thanks !! > > The project is: https://github.com/netname/FacLpt > > One of the beans that I am having problems converting to JSON is: > > https://github.com/netname/FacLpt/blob/master/src/main/java/com/palda/faclpt/model/FacLptConfiguration.java > > My openejb-jar.xml is: > <openejb-jar> > <pojo-deployment class-name="com.palda.faclpt.FacLptConfiguration"> > <properties> > cxf.jax-rs.providers = jsonProvider, jaxbProvider > </properties> > </pojo-deployment> > </openejb-jar> > > and the resources.xml file is: > <resources> > <Service id="jsonProvider" > class-name="org.codehaus.jackson.jaxrs.JacksonJsonProvider" /> > <Service id="jaxbProvider" > > class-name="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider" > /> > </resources> > > It is not clear to me what should I put in the pojo-deployment element. As > of now, I am putting one of the beans to convert. > > The error I get is: > Oct 04, 2012 4:10:51 AM > org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor > writeResponseErrorMessage > WARNING: No message body writer has been found for response class > FacLptConfiguration. > > So it seems that I am failing to indicate TomEE to use Jackson. > > Thanks again. > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/TomEE-1-5-and-Jackson-tp4657777p4657782.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
