Just tried proposed configuration: https://github.com/eiskonzept/tomee-jaxrs/blob/master/src/main/resources/META-INF/ Still not working. I have checked in debugger that JsonService.setDropRootElement(true) is called, but then another instance of JsonService is used for marshaling. pojo-deployment tag in openejb-jar.xml seems not working correctly.
My openejb-jar.xml: <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1"> <pojo-deployment class-name="de.eis.tomee.TestService"> <properties> cxf.jaxrs.providers = json </properties> </pojo-deployment> </openejb-jar> My resources.xml: <resources> <Resource id="json" class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider"> dropRootElement = true supportUnwrapped = true </Resource> </resources> -----Ursprüngliche Nachricht----- Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Gesendet: Mittwoch, 9. Januar 2013 16:11 An: users@openejb.apache.org Betreff: Re: Configuring Apache CXF in TomEE jaxrs-application is for tomee >= 1.5.2 (to be released) you can do: <!-- in openejb-jar.xml --> <pojo-deployment class-name="com.foo.MyRestService"> <properties> cxf.jaxrs.providers = json </properties> </pojo-deployment> <!-- in resources.xml --> <Resource id="json" class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider"> dropRootElement = true # etc... </Resource> supportUnwrapped=true,dropRootElement=true 2013/1/9 <dmitry.vol...@eiskonzept.com> > <pojo-deployment class-name="jaxrs-application"> > <properties> > cxf.jaxrs.properties = supportUnwrapped=true,dropRootElement=true > </properties> > </pojo-deployment> > *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*