Re: java 6 and guice?

2010-03-05 Thread nino martinez wael
Theres something wrong, worked fine with no guice bindings, but as soon as I got one I get this: Starting grizzly... 2010-03-05 09:27:08 com.sun.jersey.server.impl.application.WebApplicationImpl initiate INFO: Initiating Jersey application, version 'Jersey: 1.1.4.1 11/24/2009 01:30 AM' 2010-03-05

Re: java 6 and guice?

2010-03-05 Thread Eelco Hillenius
com.sun.jersey.server.impl.application.WebApplicationImpl processRootResources SEVERE: The ResourceConfig instance does not contain any root resource classes. Ah yes, I've seen that before. For some funny reason, Jersey refuses to start up if it doesn't find anything to work with in the

Re: java 6 and guice?

2010-03-05 Thread Eelco Hillenius
SEVERE: service exception: java.lang.NullPointerException     at com.netdesign.rest.MyResource.getIt(MyResource.java:58)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at

java 6 and guice?

2010-03-04 Thread nino martinez wael
Hi Guys First of all thank you for creating guice, it's much more light weight than spring (or at least as spring was before version 2.5). I need to use this http://docs.sun.com/app/docs/doc/820-7627/giqdq java's restfull framework, the grizzly version together with guice. But can't really see

Re: java 6 and guice?

2010-03-04 Thread Christian
If you have the choice to run in a servlet container you can go with installing a GuiceFilter the regular way http://code.google.com/p/google-guice/wiki/ServletModule Then you serve the urls that you want with guice-jersey's com.sun.jersey.guice.spi.container.servlet.GuiceContainer servlet. It

Re: java 6 and guice?

2010-03-04 Thread Eelco Hillenius
I'm using a tweaked version of contribs/jersey-guice, part of the jersey project. See https://jersey.dev.java.net/nonav/apidocs/1.1.5/contribs/jersey-guice/index.html Eelco On Thu, Mar 4, 2010 at 5:58 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Guys First of all thank you

Re: java 6 and guice?

2010-03-04 Thread nino martinez wael
Hi Eelco Thanks for the response :) Distilling it, it becomes something like this: ServletAdapter adapter = new ServletAdapter(); Injector injector =Guice.createInjector(MyModule); GuiceContainer container=new GuiceContainer(injector);