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

Hibernate Session Closed outside of request, but using WorkManager

2010-03-05 Thread e0d
I've seen similar issues to mine, but they seem to have been caused by configuration problems that I don't have -- not to say the issue is ultimately mine, just different. I have a wicket (1.4.6) application that is using google guice (2.0) and warp-persist (1.0.1). I'm using the Servlet filter

injection for module instance binding

2010-03-05 Thread Hugo
Hi, I new with Guice, and I'm still a bit confused about how it works.. I have a ConfigurationModule like this: public class Configuration extends AbstractModule { protected void configure() { } -- You received this message because you are subscribed to the Google Groups google-guice

injection for module instance binding

2010-03-05 Thread Hugo
Hi, I new with Guice, and I'm still a bit confused about how it works.. I have a ConfigurationModule like this: public class Configuration extends AbstractModule { protected void configure() { bind(GatewaysConfiguration.class).toInstance(new

Guice servlet problem with Jetty (using Google Eclipse Plugin for GWT)

2010-03-05 Thread Marc Guillemot
Hi, I have some problems using HttpSession or HttpServletRequest injection under Jetty in GWT dev mode (using Google Eclipse plugin). With HttpSession, a new session gets created which is not the standard session for my client therefore I can't find the attribute placed there by a servlet. If I

Re: injection for module instance binding

2010-03-05 Thread Eelco Hillenius
Bind the class instead of the instance, so that Guice instantiates the object, passing in dependencies in the process. and GatewayPool: public class GatewayPool {   @Inject   private GatewaysConfiguration configuration;    ..   public GatewayPool {      configuration.doSomething();  

Re: injection for module instance binding

2010-03-05 Thread Christian
Your object is injected deps if it is constructed by Guice in some way : injector.getInstance, provider.get() , being constructed by guice as a dependancy etc) I you built an object with new obviously it's not injected. There is a way, you can build an object in a module and then call

Guice 2.0 Download

2010-03-05 Thread jknaack
I can't seem to download Guice 2.0 from googlecode. I keep getting: http://google-guice.googlecode.com/files/guice-2.0.zip Not Found The requested URL /files/guice-2.0.zip was not found on this server. I've done a few group searches and web searches but I don't see anyone else reporting the

Re: Issue 168 in google-guice: VerifyError: Inconsistent stack height 1 != 2 on Solaris, TPTP

2010-03-05 Thread codesite-noreply
Comment #15 on issue 168 by dobesv: VerifyError: Inconsistent stack height 1 != 2 on Solaris, TPTP http://code.google.com/p/google-guice/issues/detail?id=168 Having the exact same error on windows when trying to profile a JUnit test. -- You received this message because you are listed in