tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Configuring Apache CXF in TomEE
Date Wed, 09 Jan 2013 21:46:22 GMT
ok so first put it in WEB-INF, it is looked up here for sure

then mea culpa, i said <Resource/> but it is <Service/>

*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/1/9 <dmitry.volkov@eiskonzept.com>

> Just tried to put files with no effect in:
> /META-INF
> /WEB-INF
> /WEB-INF/classes/META-INF
>
>
>
> -----Urspr√ľngliche Nachricht-----
> Von: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> Gesendet: Mittwoch, 9. Januar 2013 17:16
> An: users@openejb.apache.org
> Betreff: Re: Configuring Apache CXF in TomEE
>
> try to put files in WEB-INF
>
> *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/1/9 <dmitry.volkov@eiskonzept.com>
>
> > Just tried proposed configuration:
> > https://github.com/eiskonzept/tomee-jaxrs/blob/master/src/main/resourc
> > es/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:rmannibucau@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.volkov@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*
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message