Sunday, December 2, 2012

Re: Gwt 2.2, guice and gin...

Hi Carlo, 

How did you fix this issue? I'm running into exactly the same problem. When I "Run as Web Application" on Eclipse, I get the following exception:

 No implementation for javax.inject.Provider<com.google.gwt.inject.rebind.GinjectorBindings> was bound. 
  while locating javax.inject.Provider<com.google.gwt.inject.rebind.GinjectorBindings> 
    for parameter 4 at com.google.gwt.inject.rebind.GinjectorBindings.<init>(GinjectorBindings.java:196) 
  at com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:75) 

I've tried making a new project with the GIN source code, and adding that as a library to my Java project. But I still get the same error.

I'm using gin-2.0, which appears to come with guice-3.0 bundled with it.

Please let me know where I can look to troubleshoot this problem, or if there is some other library I should be including as well.

Regards, 
Avanish

On Tuesday, February 15, 2011 1:55:11 PM UTC+5:30, Carlo Alberto Degli Atti wrote:
thanks leszek,

 but I'm experiencing this exception

 No implementation for
javax.inject.Provider<com.google.gwt.inject.rebind.GinjectorBindings>
was
bound.
  while locating
javax.inject.Provider<com.google.gwt.inject.rebind.GinjectorBindings>
    for parameter 4
at
com.google.gwt.inject.rebind.GinjectorBindings.<init>(GinjectorBindings.java:
182)
  at
com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:
69)

Do you know what does it mean?
Is something missing?

Thanks a lot!


On Feb 14, 10:30 pm, leszek <leszek.ptokar...@gmail.com> wrote:
> I run into the same problem yesterday but finally, after taking new
> GIN snapshot and migrate to GUICE 3.0 (as is described in your post) I
> was successful and everything seems working now. The only problem I
> spent several hours on was that Nullable annotation disappeared from
> Guice internals and it took me a lot of time until I understood what
> was going on.
>
> http://groups.google.com/group/google-guice/browse_frm/thread/38859fa...
>
> You have to be prepared for a lot of surprises if you bank on google
> code, is it bad news, but good news is that - on the whole - it works.
>
> On 14 Lut, 16:57, Carlo Alberto Degli Atti <lordk...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello everybody,
>
> >  this morning I had the (bad) idea to update my eclipse environment to use
> > gwt 2.2... (with 2.1 everything was fine)...
>
> >  now I'm experiencing a lot of problems... maybe it's my fault (I'm a new
> > gwt & related techs user)...
>
> >  My application is using gin and guice; before this morning I was using gin
> > v1.0 and guice 2.0.
>
> >  Now:
>
> >  *1. after upgrading to gwt (to 2.2) I got this exception (still the
> > original guice and gin versions):*
>
> >    [WARN] failed JettyContainerService$ApiProxyHandler@ae281c:
> > java.lang.NoClassDefFoundError: com/google/inject/internal/Lists
>
> > [WARN] Error starting handlers
>
> > java.lang.NoClassDefFoundError: com/google/inject/internal/Lists
>
> > at com.google.inject.servlet.FiltersModuleBuilder.<init>(
> > FiltersModuleBuilder.java:36)
>
> > at com.google.inject.servlet.ServletModule.<init>(ServletModule.java:219)
>
> > * 2. then I updated the guice version to 3.0-rc2 *mantaining* the original
> > gin version (1.0), but I got this unlikely mix*:
>
> >     gin-1.0.jar
>
> >     guice-2.0.jar
>
> >     guice-servlet-3.0-rc2.jar
>
> >    as expected, my application threw this exception:
>
> >    [WARN] Error starting handlers
>
> >    java.lang.NoClassDefFoundError:
> > com/google/inject/internal/util/$Preconditions
>
> > at com.google.inject.servlet.ServletModule.configure(ServletModule.java:44)
>
> > at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
>
> >         ...
>
> >  *3. after some investigations, I discovered that gwt 3.2 requires a new gin
> > (see this post **http://groups.google.com/group/google-gin/browse_thread/thread/70520a...
> > ). **I also updated gin to 1.1-2.2-SNAPSHOT. *The dependencies looked right
> > now:
>
> >     gin-1.1-2.2-20110211.140818-5.jar
>
> >     guice-3.0-rc2.jar
>
> >     guice-assistedinject-3.0-rc2.jar
>
> >     guice-servlet-3.0-rc2.jar
>
> >     gwt-servlet-2.2.0.jar
>
> >     javax.inject-1.jar
>
> >   **BUT* the application threw another exception:*
>
> >   com.google.inject.CreationException: Guice creation errors:
>
> >   1) No implementation for
> > javax.inject.Provider<com.google.gwt.inject.rebind.GinjectorBindings> was
> > bound.
>
> >      while locating
> > javax.inject.Provider<com.google.gwt.inject.rebind.GinjectorBinding>
>
> >      for parameter 4 at
> > com.google.gwt.inject.rebind.GinjectorBindings.<init>(GinjectorBindings.jav a:182)
>
> >      at
> > com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe neratorModule.java:69)
>
> >   So:
>
> >   - where am I wrong?
>
> >   - do you have suggestions to solve this?
>
> >   Thanks in advance for any help
>
> >   CA

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/AKI8OYdeiusJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment