Re: How to get Tomee JAX-RS CXF + Jackson 1.9? Please help

2013-10-13 Thread Romain Manni-Bucau
On trunk you configure the app. Before it was by endpoint :( Le 13 oct. 2013 23:12, "zmirc" a écrit : > Hi! > > Thanks again. You're one of the reasons I love Tomee & its community. > I've searched all the internet, but that. My bad. Sorry. > > Each JAX-RS @Path class must have "cxf.jaxrs.provide

Re: How to get Tomee JAX-RS CXF + Jackson 1.9? Please help

2013-10-13 Thread zmirc
Hi! Thanks again. You're one of the reasons I love Tomee & its community. I've searched all the internet, but that. My bad. Sorry. Each JAX-RS @Path class must have "cxf.jaxrs.providers" specified in the openejb-jar.xml? Isn't there any option of setting that property for all cases or for all c

Re: How to get Tomee JAX-RS CXF + Jackson 1.9? Please help

2013-10-13 Thread Romain Manni-Bucau
Hi did you read http://openejb.979440.n4.nabble.com/TomEE-1-5-and-Jackson-td465.html ? *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibuc

How to get Tomee JAX-RS CXF + Jackson 1.9? Please help

2013-10-13 Thread zmirc
Hi! I've been trying the whole day to get Tomee 1.6 JAX-RS distribution having Jackson as JaxbJson provider, but with no success. What am I missing? I've read all possible resources about it. Here's the sample project: https://github.com/zmirc/tomee-cxf-jackson-sample

Re: Tomee 1.6.0 2013.10.05 + Jersey 2.3.X -> openejb class loader error

2013-10-13 Thread zmirc
Pfew...thank you so much. It finally worked, but I had to put        Jersey Web Application     /api/*   too, as you suggested, even though it worked without in Tomcat, because it was reading @ApplicationPath from my class extending Application. Moreover, to get Jackson working properly as we

Re: Tomee 1.6.0 2013.10.05 + Jersey 2.3.X -> openejb class loader error

2013-10-13 Thread Romain Manni-Bucau
you didn't configure jersey to use a provided bean manager (see -D com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager) *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: *

Re: Tomee 1.6.0 2013.10.05 + Jersey 2.3.X -> openejb class loader error

2013-10-13 Thread zmirc
Hi! Here it is the updated source: https://github.com/zmirc/tomee-jersey-bug I stopped trying Jersey JAX-RS 2, and I downgraded, but now I get: Oct 13, 2013 3:07:08 PM org.apache.catalina.core.ApplicationContext log SEVERE: StandardWrapper.Throwable java.lang.RuntimeException: javax.naming.NameN

Re: Tomee 1.6.0 2013.10.05 + Jersey 2.3.X -> openejb class loader error

2013-10-13 Thread Romain Manni-Bucau
Hi I don't get the NPE. About your issues: 1) why just extending Application should work if you use jersey? You want to use jersey so you do it yourself 2) you need to specify your Application class in web.xml as per the spec Here is a sample http://svn.apache.org/repos/asf/tomee/tomee/trunk/exa

Tomee 1.6.0 2013.10.05 + Jersey 2.3.X -> openejb class loader error

2013-10-13 Thread zmirc
Hi! I was trying to get Tomee 1.6.0 2013.10.05 (plain web profile without JAX-RS) to work with Jersey 2.3.1, but not success. The same project works flawlessly on Tomcat 7.0.42. The problem is a 500 error, which is not even logged in files by Tomee, but it just appears in the web page: java.lang.N

Re: Tomee 1.6.0 2013.10.05 + Jersey 2.3.X -> openejb class loader error

2013-10-13 Thread zmirc
Moreover, if I don't specify JAX-RS in web.xml and I try to extend JAX-RS Application, Tomee doesn't do anything at all, and returns 404. Yet...this example works on plain Tomcat 7.0.42. I've attached both maven projects, for easier access. tomee-jersey-bug-extending-Application.zip