global property cxf.jaxrs.providers should support it using json as value if not please check it doesn't work on the snapshot then if so provide us a sample buildable and reproducing the issue
*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* 2013/6/7 Chris.Christo <[email protected]> > Hi Romain, > > I was targeting openejb.xml (and/or system.properties and/or > conf.d/cxf-rs.properties) for a global config of the openejb server and not > openejb-jar.xml which is specifically for one ejb jar (notice I'm referring > to the xml without the '-jar' part). > > Chris Christo > > --- > Twitter: https://twitter.com/ChrisChristo7 > Tumblr: http://chrischristo7.tumblr.com > LinkedIn: http://uk.linkedin.com/in/chrischristo > GitHub: https://github.com/ChrisChristo > > On 7 Jun 2013, at 13:03, Romain Manni-Bucau <[email protected]> wrote: > > > <Resource id="json" class-name="org.apache.cxf.jaxrs.provider.json. > > JSONProvider"> > > dropRootElement = true > > supportUnwrapped = true > > </Resource > > > > works fine when setting the providers in openejb-jar.xml > > > > *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* > > > > > > > > 2013/6/7 Chris.Christo <[email protected]> > > > >> Hi guys, > >> > >> Quick question, How can I get the following properties applied to > jax-rs? > >> dropRootElement = true > >> supportUnwrapped = true > >> I saw this post > >> > >> > >> > http://openejb.979440.n4.nabble.com/Configuring-Apache-CXF-in-TomEE-td4660207.html > >> > >> which outlines how to do it with an openejb-jar.xml and a resources.xml, > >> but how can I do it with just system.properties and/or openejb.xml? > >> > >> I've tried things like: > >> > >> openejb.jaxrs.providers.auto=true > >> > >> > openejb.cxf.jax-rs.providers=org.apache.cxf.jaxrs.provider.json.JSONProvider > >> org.apache.cxf.jaxrs.provider.json.JSONProvider.dropRootElement = true > >> org.apache.cxf.jaxrs.provider.json.JSONProvider.supportUnwrapped = true > >> > >> also tried this in openejb.xml > >> > >> <Resource id="json" > >> class-name="org.apache.cxf.jaxrs.provider.json.JSONProvider"> > >> dropRootElement = true > >> supportUnwrapped = true > >> </Resource> > >> > >> but no to avail. > >> > >> > >> Chris Christo > >> > >> --- > >> Twitter: https://twitter.com/ChrisChristo7 > >> Tumblr: http://chrischristo7.tumblr.com > >> LinkedIn: http://uk.linkedin.com/in/chrischristo > >> GitHub: https://github.com/ChrisChristo > >> > >> > >
