Hi

I don't get all parts of your mail, cxf.jaxrs and provider auto are
cxf stuff totally ignored by jersey and spring.

Is tomee deploying your jaxrs endpoints? if so maybe skip the jars
containing the endpoints (see exclusion.list)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-02-12 19:26 GMT+01:00 trima <[email protected]>:
> Hi,
> I have a maven spring project which has REST URLs exposed. There are some
> autowired objects injected in the resource classes (HttpServletRequest obj
> and other custom objects of my project). This deployement works fine in
> tomcat, but now we are required to move our deployment to Tomee+ 1.6. There
> is a weird behavior which is seen. The Autowiring seems to work only
> sometime. So if I restart the TomEE 10 times then only 2-3 times the
> autowiring seems to work otherwise I get a NullPointerException for the
> auutowired object. I tried adding below options in system.properties but to
> no avail. -
> openejb.jaxrs.providers.auto=true
> com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager = true
> openejb.cxf.jax-rs.providers =
> org.codehaus.jackson.jaxrs.JacksonJsonProvider,org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider.
>
> I have also tried to add a beans.xml in WEB-INF, but it didn't helped.
> The web.xml entry for jersey servlet is as below :
> <servlet>
>               <servlet-name>myproject</servlet-name>
>
> <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
>               <init-param>
>
> <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
>                      <param-value>true</param-value>
>               </init-param>
>               <load-on-startup>2</load-on-startup>
> </servlet>
>
> I am not able to understand why it works for sometimes and fail the rest of
> the time. It looks like some class/library loading issue by TomEE.
>
>
>
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Autowiring-Spring-Injection-not-working-tomEE-1-6-plus-tp4667748.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to