Almost but not totally. 1) i think you should put it in web-inf 2) values are id of resources defined in resources.xml ( <Resources id="json" class-name="..."/>) Le 15 sept. 2012 23:41, "Luca Merolla" <[email protected]> a écrit :
> Not sure if it's right but I have added this openejb-jar.xml file in > META-INF of my REST application. > > <?xml version="1.0" encoding="UTF-8"?> > <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1"> > <pojo-deployment class-name="org.test.portone.PortoneApplication"> > <properties> > cxf.jax-rs.providers = > org.codehaus.jackson.jaxrs.JacksonJsonProvider, > org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider > </properties> > </pojo-deployment> > </openejb-jar> > > Where PortoneApplication extends javax.ws.rs.core.Application. > > It seems that nothing is changed because I still get the same error > > Sep 15, 2012 11:39:26 PM org.apache.cxf.jaxrs.utils.JAXRSUtils > readFromMessageBody > WARNING: No message body reader has been found for request class > SecurityContext, ContentType : application/json. > > > On Sat, Sep 15, 2012 at 10:26 PM, Romain Manni-Bucau > <[email protected]>wrote: > > > Yeah using openejb-jar.xml in either pojo-deployment (attribute > class-name) > > or ejb-deployment (attribute name) add cxf.jaxrs.providers = ... property > > Le 15 sept. 2012 22:24, "Luca Merolla" <[email protected]> a écrit > : > > > > > I'm trying to configure Jackson Json provider but I get this error: > > > > > > INFO: ServletContext initialized. > > > Sep 15, 2012 10:22:31 PM org.apache.openejb.observer.ObserverManager > > > fireEvent > > > SEVERE: error invoking > > > org.apache.openejb.observer.ObserverManager$Observer@38131650 > > > java.lang.reflect.InvocationTargetException > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > at > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > at > > > > > > > > > org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145) > > > at > > > > > > > > > org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69) > > > at > > > > > > org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:105) > > > at > > > > > > > > > org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1102) > > > at > > > > > > > > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:104) > > > at > > > > > > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > > at > > > > > > > > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > > > at > > > > > > > > > org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401) > > > at > > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168) > > > at > > > > > > > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) > > > at > > > > > > > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) > > > at > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > > at > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > > at > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > > at java.lang.Thread.run(Thread.java:662) > > > Caused by: java.lang.IllegalArgumentException: no @Path annotation on > > > com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider > > > at > > > > > > org.apache.openejb.server.rest.RESTService.getAddress(RESTService.java:422) > > > at > > > > > > > > > org.apache.openejb.server.rest.RESTService.deploySingleton(RESTService.java:315) > > > at > > > > > > > > > org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:171) > > > at > > > > > > > > > org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:51) > > > ... 20 more > > > > > > in my application class I have: > > > > > > @Override > > > public Set<Object> getSingletons() { > > > HashSet<Object> singletons = new HashSet<Object>(); > > > singletons.add(new > > com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider()); > > > > > > return singletons; > > > } > > > > > > Is there a better way to use the jackson as json provider? > > > > > > On Sat, Sep 15, 2012 at 12:42 PM, Romain Manni-Bucau > > > <[email protected]>wrote: > > > > > > > Depend what they do but normally no > > > > Le 15 sept. 2012 12:34, "Luca Merolla" <[email protected]> a > > écrit > > > : > > > > > > > > > I'll give a try. Could be that the problem is related to the fact > > that > > > I > > > > > have some @WebFilter configured? > > > > > > > > > > On Sat, Sep 15, 2012 at 12:09 PM, Romain Manni-Bucau > > > > > <[email protected]>wrote: > > > > > > > > > > > Hmm weird, maybe you need to configure custom providers, i dont > > think > > > > we > > > > > > have example but i could provide one next week. > > > > > > > > > > > > Fyi here a sample of jaxws config > > > > > > > > > > > > > > > > > > > > > > > > > > > http://svn.apache.org/repos/asf/openejb/trunk/openejb/examples/webservice-ws-with-resources-config/(use > > > > > > cxf.jaxrs.providers for your case) and here default providers > > > > > > > > > > > > > > > > > > > > > > > > > > > http://svn.apache.org/repos/asf/openejb/trunk/openejb/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java(last > > > > > > method) > > > > > > Le 15 sept. 2012 10:41, "Luca Merolla" <[email protected]> > a > > > > écrit > > > > > : > > > > > > > > > > > > > I have tried last build snapshot from the 15th September, and > > with > > > > this > > > > > > > build I don't get the 404 but I get "415 Unsupported Media > Type" > > > > > > > > > > > > > > Sep 15, 2012 10:36:10 AM org.apache.cxf.jaxrs.utils.JAXRSUtils > > > > > > > readFromMessageBody > > > > > > > WARNING: No message body reader has been found for request > class > > > > > > > SecurityContext, ContentType : application/json > > > > > > > > > > > > > > I had @Produces({ MediaType.APPLICATION_JSON, > > > > MediaType.APPLICATION_XML > > > > > > }) > > > > > > > in the interface class, and I have moved them as well in the > impl > > > > class > > > > > > but > > > > > > > it does not change anything. > > > > > > > When I'm sending the request I put these headers: > > > > > > > -Content-Type: application/json > > > > > > > -Accept: application/json > > > > > > > > > > > > > > > > > > > > > On Sat, Sep 15, 2012 at 1:19 AM, Luca Merolla < > > > > [email protected] > > > > > > > >wrote: > > > > > > > > > > > > > > > I have tried to use @ApplicationPath and remove the cxf > > servlet, > > > > > then i > > > > > > > > moved @Path from the interface to the impl classes and my URI > > are > > > > not > > > > > > > > accessible anymore... I get 404 errors. > > > > > > > > > > > > > > > > I'll try tomorrow with the new build from the repository to > see > > > if > > > > > > > changes > > > > > > > > fixed it. > > > > > > > > > > > > > > > > On Fri, Sep 14, 2012 at 8:50 PM, Romain Manni-Bucau < > > > > > > > [email protected] > > > > > > > > > wrote: > > > > > > > > > > > > > > > >> Just push a little change. If you can build a snapshot (i > cant > > > run > > > > > the > > > > > > > >> deployment now). Btw you shouldnt need cxf servlet if ypu > use > > > > tomee > > > > > > > jaxrs > > > > > > > >> or tomee plus otherwise disable cxf. > > > > > > > >> > > > > > > > >> Either use OpenEJBRestServlet or use @applicationpath on > your > > > > > > > application > > > > > > > >> child. > > > > > > > >> Le 14 sept. 2012 19:53, "Romain Manni-Bucau" < > > > > [email protected] > > > > > > > > > > > > a > > > > > > > >> écrit : > > > > > > > >> > > > > > > > >> > Hmm maybe i messed my env but simply moving path > annotation > > > from > > > > > > > >> interface > > > > > > > >> > to impl worked for me (im rebuilding again to check if i > > didnt > > > > > have > > > > > > > >> local > > > > > > > >> > modif) > > > > > > > >> > Le 14 sept. 2012 18:25, "Luca Merolla" < > > > [email protected]> > > > > a > > > > > > > >> écrit : > > > > > > > >> > > > > > > > > >> >> My interface and implementation class are following > somehow > > > > this > > > > > > > >> schema, > > > > > > > >> >> especially about the JAX-RS annotations. I have @Path > @GET > > > > > > @Produces > > > > > > > in > > > > > > > >> >> the > > > > > > > >> >> interface and this lead to the NPE inside the impl class > > > > > > > >> >> > > > > > > > >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://extreme-java.blogspot.it/2011/04/rest-webservice-using-cxf-first.html > > > > > > > >> >> > > > > > > > >> >> If I move the annotations to the impl class I get the > "415 > > > > > > > Unsupported > > > > > > > >> >> Media Type" > > > > > > > >> >> > > > > > > > >> >> On Fri, Sep 14, 2012 at 6:17 PM, Luca Merolla < > > > > > > > [email protected] > > > > > > > >> >> >wrote: > > > > > > > >> >> > > > > > > > >> >> > Now the request doesn't reach the method and I get: > > > > > > > >> >> > > > > > > > > >> >> > No message body reader has been found for request class > > > > > > > >> SecurityContext, > > > > > > > >> >> > ContentType : application/json > > > > > > > >> >> > > > > > > > > >> >> > > > > > > > > >> >> > On Fri, Sep 14, 2012 at 6:00 PM, Romain Manni-Bucau < > > > > > > > >> >> [email protected] > > > > > > > >> >> > > wrote: > > > > > > > >> >> > > > > > > > > >> >> >> did it already work? > > > > > > > >> >> >> > > > > > > > >> >> >> honestly i'm not sure you can do it this way, cxf > seems > > to > > > > > > expect > > > > > > > >> the > > > > > > > >> >> impl > > > > > > > >> >> >> to be decorated by jaxrs annotations > > > > > > > >> >> >> > > > > > > > >> >> >> *Romain Manni-Bucau* > > > > > > > >> >> >> *Twitter: @rmannibucau* > > > > > > > >> >> >> *Blog: http://rmannibucau.wordpress.com* > > > > > > > >> >> >> > > > > > > > >> >> >> > > > > > > > >> >> >> > > > > > > > >> >> >> > > > > > > > >> >> >> 2012/9/14 Luca Merolla <[email protected]> > > > > > > > >> >> >> > > > > > > > >> >> >> > I have the @Path on the interface implemented by the > > > > class. > > > > > > > Anyway > > > > > > > >> >> I'll > > > > > > > >> >> >> > give a try with it, but the NPE is getting at > > > > > > > >> >> >> > > > > > > > > >> >> >> > Caused by: java.lang.NullPointerException at > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.pokernuvola.portone.service.LobbyResourceImpl.getUserCash(LobbyResourceImpl.java:35 > > > > > > > >> >> >> > > > > > > > > >> >> >> > where I have: > > > > > > > >> >> >> > > > > > > > > >> >> >> > > userBO.getUserCash(sec.getUserPrincipal().getName()); > > > > > > > >> >> >> > > > > > > > > >> >> >> > and userBO is injected in this way: > > > > > > > >> >> >> > > > > > > > > >> >> >> > @Inject private UserBO userBO; > > > > > > > >> >> >> > > > > > > > > >> >> >> > On Fri, Sep 14, 2012 at 5:28 PM, Romain Manni-Bucau > > > > > > > >> >> >> > <[email protected]>wrote: > > > > > > > >> >> >> > > > > > > > > >> >> >> > > BTW you didnt put @Path on the class (impl), i > think > > > > > that's > > > > > > > the > > > > > > > >> >> issue > > > > > > > >> >> >> (i > > > > > > > >> >> >> > > currently have some envrt issues but will try to > > test > > > > > asap) > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > *Blog: http://rmannibucau.wordpress.com* > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > 2012/9/14 Luca Merolla <[email protected]> > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > Tested on a "vanilla" tomee, sorry again. > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > * > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://www.fileconvoy.com/dfl.php?id=g99869b3ea67bb42614697354a49a4dafb6f061 > > > > > > > >> >> >> > > > * > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > On Fri, Sep 14, 2012 at 4:55 PM, Romain > > Manni-Bucau > > > > > > > >> >> >> > > > <[email protected]>wrote: > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > no big luck neither : > > > > > java.lang.ClassNotFoundException: > > > > > > > >> >> >> > > > > org.pokernuvola.common.exceptions.WebException > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > > > *Blog: http://rmannibucau.wordpress.com* > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > 2012/9/14 Luca Merolla < > [email protected]> > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > Sorry, I forgot to remove the dependecy from > > an > > > > > > external > > > > > > > >> >> >> library. > > > > > > > >> >> >> > > > > > This will work: > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > * > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://www.fileconvoy.com/dfl.php?id=g171e46e07f233f55146959737bf1b4b313d9ab > > > > > > > >> >> >> > > > > > * > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > On Fri, Sep 14, 2012 at 4:25 PM, Romain > > > > Manni-Bucau > > > > > > > >> >> >> > > > > > <[email protected]>wrote: > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > i get a java.lang.ClassNotFoundException: > > > > > > > >> >> >> > > > > > > org.pokernuvola.remote.dto.UserDTO > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > > > > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > > > > > *Blog: http://rmannibucau.wordpress.com* > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > 2012/9/14 Luca Merolla < > > > [email protected]> > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > This is the war I'm using to test it: > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://www.fileconvoy.com/dfl.php?id=gcb83703dbc6be56814694269bb1ac6942c58de > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > the URI is GET - > > > > > > > >> >> >> > > > > > > > > http://localhost:8080/pn-portone/rest/lobby/usercash > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > On Fri, Sep 14, 2012 at 3:16 PM, Romain > > > > > > Manni-Bucau > > > > > > > >> >> >> > > > > > > > <[email protected]>wrote: > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > do you have binary to share to make it > > > easy > > > > to > > > > > > > >> >> reproduce? > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > > > > > > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > > > > > > > *Blog: > http://rmannibucau.wordpress.com > > * > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > 2012/9/14 Luca Merolla < > > > > > [email protected]> > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > Tried with > > > > > > > >> >> apache-tomee-1.1.0-20120914.040953-134-plus > > > > > > > >> >> >> and > > > > > > > >> >> >> > I > > > > > > > >> >> >> > > > was > > > > > > > >> >> >> > > > > > > still > > > > > > > >> >> >> > > > > > > > > get > > > > > > > >> >> >> > > > > > > > > > the same exception. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > I had to put it back > > > > > > > >> >> >> > > > > > > > > > the > > > > > > > >> >> >> org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet > > > > > > > >> >> >> > > > > > > configuration > > > > > > > >> >> >> > > > > > > > > in > > > > > > > >> >> >> > > > > > > > > > the web.xml to make it work. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > Anyway, injection does not still > work. > > > :( > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > On Fri, Sep 14, 2012 at 12:03 PM, > > Romain > > > > > > > >> Manni-Bucau > > > > > > > >> >> >> > > > > > > > > > <[email protected]>wrote: > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > just redeployed a snapshot, > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > maybe you can give it a try > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > > > > > > > > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > > > > > > > > > *Blog: > > > http://rmannibucau.wordpress.com > > > > * > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > 2012/9/14 Luca Merolla < > > > > > > > [email protected]> > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > Sorry I forgot to add the > servlet > > > that > > > > > > > extends > > > > > > > >> >> >> > > Application > > > > > > > >> >> >> > > > in > > > > > > > >> >> >> > > > > > the > > > > > > > >> >> >> > > > > > > > > > > web.xml. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > Now I dont get the 404 anymore > > but I > > > > > get a > > > > > > > 500 > > > > > > > >> >> >> error. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > java.lang.NullPointerException > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1629) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > java.lang.ClassLoader.loadClass(ClassLoader.java:295) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:461) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > > > >> >> >> > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > java.lang.Thread.run(Thread.java:662) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > On Fri, Sep 14, 2012 at 11:07 > AM, > > > > Romain > > > > > > > >> >> Manni-Bucau > > > > > > > >> >> >> > > > > > > > > > > > <[email protected]>wrote: > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > hmm > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > we had some regressions last > few > > > > days. > > > > > > It > > > > > > > is > > > > > > > >> >> fixed > > > > > > > >> >> >> > now, > > > > > > > >> >> >> > > > > maybe > > > > > > > >> >> >> > > > > > > the > > > > > > > >> >> >> > > > > > > > > > > > snapshot > > > > > > > >> >> >> > > > > > > > > > > > > didnt get the fixes (surely > BTW, > > > we > > > > > > don't > > > > > > > >> >> compile > > > > > > > >> >> >> > > anymore > > > > > > > >> >> >> > > > > > > because > > > > > > > >> >> >> > > > > > > > > we > > > > > > > >> >> >> > > > > > > > > > > need > > > > > > > >> >> >> > > > > > > > > > > > > an openwebbeans snapshot to > get > > > > > > deployed). > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > > > > > > > > > > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > > > > > > > > > > > *Blog: > > > > > http://rmannibucau.wordpress.com > > > > > > * > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > 2012/9/14 Luca Merolla < > > > > > > > >> [email protected] > > > > > > > >> >> > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > I have downloaded the > > snapshots > > > > from > > > > > > the > > > > > > > >> >> 13th of > > > > > > > >> >> >> > > > > September. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > I have changed the web.xml. > > > > > Basically > > > > > > I > > > > > > > >> have > > > > > > > >> >> >> > removed > > > > > > > >> >> >> > > > > > > everything > > > > > > > >> >> >> > > > > > > > > > > except > > > > > > > >> >> >> > > > > > > > > > > > > > the security-constraint tag > > > where > > > > I > > > > > > have > > > > > > > >> set > > > > > > > >> >> the > > > > > > > >> >> >> > > BASIC > > > > > > > >> >> >> > > > > > > > > auth-method. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > I have the classes which > > extends > > > > > > > >> Appplication > > > > > > > >> >> >> where > > > > > > > >> >> >> > > I'm > > > > > > > >> >> >> > > > > > > adding > > > > > > > >> >> >> > > > > > > > > the > > > > > > > >> >> >> > > > > > > > > > > > > resource > > > > > > > >> >> >> > > > > > > > > > > > > > classes > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > public class > > PortoneApplication > > > > > > extends > > > > > > > >> >> >> > Application { > > > > > > > >> >> >> > > > > > > > > > > > > > @Override > > > > > > > >> >> >> > > > > > > > > > > > > > public Set<Class<?>> > > > getClasses() > > > > { > > > > > > > >> >> >> > > > > > > > > > > > > > Set<Class<?>> classes = new > > > > > > > >> >> HashSet<Class<?>>(); > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > classes.add(UserResourceImpl.class); > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > classes.add(AccountResourceImpl.class); > > > > > > > >> >> >> > > > > > > > > > > > > > return classes; > > > > > > > >> >> >> > > > > > > > > > > > > > } > > > > > > > >> >> >> > > > > > > > > > > > > > } > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > But now I get 404 for every > > > > request. > > > > > > Am > > > > > > > I > > > > > > > >> >> >> missing > > > > > > > >> >> >> > > > > something > > > > > > > >> >> >> > > > > > > in > > > > > > > >> >> >> > > > > > > > > the > > > > > > > >> >> >> > > > > > > > > > > > > > configuration? > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > On Mon, Sep 10, 2012 at 8:28 > > AM, > > > > > > Romain > > > > > > > >> >> >> Manni-Bucau > > > > > > > >> >> >> > > > > > > > > > > > > > <[email protected] > >wrote: > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > ok so first you shouldn't > > need > > > > > > > >> >> >> > > > > CXFNonSpringJaxrsServlet > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > then i'll fix an issue we > > have > > > > > with > > > > > > > >> jaxrs > > > > > > > >> >> >> (due to > > > > > > > >> >> >> > > > > jersey > > > > > > > >> >> >> > > > > > > > work) > > > > > > > >> >> >> > > > > > > > > in > > > > > > > >> >> >> > > > > > > > > > > the > > > > > > > >> >> >> > > > > > > > > > > > > > > following minutes (should > be > > > > done > > > > > @ > > > > > > > 9am) > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > *Romain Manni-Bucau* > > > > > > > >> >> >> > > > > > > > > > > > > > > *Twitter: @rmannibucau* > > > > > > > >> >> >> > > > > > > > > > > > > > > *Blog: > > > > > > > http://rmannibucau.wordpress.com > > > > > > > >> * > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > 2012/9/10 Luca Merolla < > > > > > > > >> >> >> [email protected]> > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > I'm using the > > 1.1.0-SNAPSHOT > > > > > from > > > > > > > the > > > > > > > >> >> 3rd of > > > > > > > >> >> >> > > > > September. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > In my web.xml > > configuration > > > > I'm > > > > > > > using > > > > > > > >> the > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet > > > > > > > >> >> >> > > > > > > > > > > > > > > > class and I have > defined a > > > > > > > >> >> >> > > javax.ws.rs.Application > > > > > > > >> >> >> > > > > > > subclass > > > > > > > >> >> >> > > > > > > > > > > where I > > > > > > > >> >> >> > > > > > > > > > > > > > > > register the service > > > classes. > > > > > > > >> >> >> > > > > > > > > > > > > > > > I have the beans.xml > under > > > my > > > > > > > WEB-INF > > > > > > > >> >> >> folder. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > Then I have an @Inject > > > > > annotation > > > > > > > >> inside > > > > > > > >> >> the > > > > > > > >> >> >> > > > service > > > > > > > >> >> >> > > > > > > > > > > implementation > > > > > > > >> >> >> > > > > > > > > > > > > > class > > > > > > > >> >> >> > > > > > > > > > > > > > > > which returns a null. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > On Mon, Sep 10, 2012 at > > > 12:06 > > > > > AM, > > > > > > > >> Romain > > > > > > > >> >> >> > > > Manni-Bucau > > > > > > > >> >> >> > > > > > > > > > > > > > > > <[email protected] > > > >wrote: > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > Did you try the > > snapshot? > > > > > > > >> >> >> > > > > > > > > > > > > > > > > Le 9 sept. 2012 23:22, > > > "Luca > > > > > > > >> Merolla" < > > > > > > > >> >> >> > > > > > > > > > [email protected]> > > > > > > > >> >> >> > > > > > > > > > > a > > > > > > > >> >> >> > > > > > > > > > > > > > > écrit : > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > Hello, > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > I have a REST > > > application > > > > > that > > > > > > > I'm > > > > > > > >> >> >> trying > > > > > > > >> >> >> > to > > > > > > > >> >> >> > > > > > > configure > > > > > > > >> >> >> > > > > > > > to > > > > > > > >> >> >> > > > > > > > > > > work > > > > > > > >> >> >> > > > > > > > > > > > > with > > > > > > > >> >> >> > > > > > > > > > > > > > > > CXF. > > > > > > > >> >> >> > > > > > > > > > > > > > > > > Is > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > it possible that CDI > > > > inject > > > > > is > > > > > > > not > > > > > > > >> >> >> > supported > > > > > > > >> >> >> > > on > > > > > > > >> >> >> > > > > the > > > > > > > >> >> >> > > > > > > > REST > > > > > > > >> >> >> > > > > > > > > > > > service > > > > > > > >> >> >> > > > > > > > > > > > > > > > classes > > > > > > > >> >> >> > > > > > > > > > > > > > > > > or > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > I'm missing > something? > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > Luca > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > -- > > > > > > > >> >> >> > > > > > > > > > > > *Luca Merolla* > > > > > > > >> >> >> > > > > > > > > > > > Management, Business & > Technology > > > > > > Consultant > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > < > > > > http://maps.google.com/maps?q=&hl=en> > > > > > > > >> >> *Mobile:* > > > > > > > >> >> >> > > > > > +393774569974 > > > > > > > >> >> >> > > > > > > > > > > > *Email:* [email protected] > > > > > > > >> >> >> > > > > > > > > > > > * > > > > > http://nl.linkedin.com/in/lucamerolla* > > > > > > > >> >> >> > > > > > > > > > > > *Blog < > > > > http://lucamerolla.wordpress.com > > > > > >* > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > Merolla Consulting Limited > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > > >> >> >> > > > > > > > > > > > > >> >> >> > > > > > > > > > > > >> >> >> > > > > > > > > > > >> >> >> > > > > > > > >> >> > > > > > > > > >> >> > > > > > > > >> >> > > > > > > > >> >> -- > > > > > > > >> >> *Luca Merolla* > > > > > > > >> >> Management, Business & Technology Consultant > > > > > > > >> >> > > > > > > > >> >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
