You forgot the Gin 1.5 dependencies.

http://code.google.com/p/gwt-platform/wiki/PortingV1#Dependencies

<http://code.google.com/p/gwt-platform/wiki/PortingV1#Dependencies>Cheers,

On Sun, Mar 13, 2011 at 2:01 PM, natas <ribeiro.si...@gmail.com> wrote:

> Christofer and Juan,
>
> Thank you very much for your answers. Indeed that seems to be the
> problem. But I can't get it to work...
>
> These are the steps I've performed:
> - Configured my project to use GWT SDK 2.2.0
> - Downloaded both gin-1.5 and gwtp-all-0.5.1
> - Added all the jars to war/WEB-INF/lib/ (except gin-1.5-pre-
> gwt-2.2.jar)
> - Added all the jars to the Referenced Libraries except gwtp-all-0.5.1-
> javadoc.jar and gwtp-all-0.5.1-sources.jar
>
> When I try to run the application locally I get this error:
>
> Errors in 'jar:file:/MY_PROJECT_PATH/war/WEB-INF/lib/gin-1.5-post-
> gwt-2.2.jar!/com/google/gwt/inject/client/assistedinject/
> GinFactoryModuleBuilder.java'
> Line 216: The method get(Class<capture#1-of ? extends T>) is undefined
> for the type TypeLiteral
> Line 223: The method get(Class<T>) is undefined for the type
> TypeLiteral
> Line 230: The method get(Class<capture#3-of ? extends T>) is undefined
> for the type TypeLiteral
> Line 246: The method get(Class<capture#5-of ? extends T>) is undefined
> for the type TypeLiteral
> ...
>
>
> Also, if I perform all those steps without adding the GWTP 0.5.1 I get
> the same error. Does this mean the error is just GWT 2.2 or GIN 1.5
> related?
>
> Do you have any idea of what I might be doing wrong?
>
> Thank you both for your help
>
>
> On Mar 13, 6:00 pm, natas <ribeiro.si...@gmail.com> wrote:
> > Christofer and Juan,
> >
> > Thank you very much for your answers. Indeed that seems to be the
> > problem. But I can't get it to work...
> >
> > These are the steps I've performed:
> > - Configured my project to use GWT SDK 2.2.0
> > - Downloaded both gin-1.5 and gwtp-all-0.5.1
> > - Added all the jars to war/WEB-INF/lib/ (except gin-1.5-pre-
> > gwt-2.2.jar)
> > - Added all the jars to the Referenced Libraries except gwtp-all-0.5.1-
> > javadoc.jar and gwtp-all-0.5.1-sources.jar
> >
> > When I try to run the application locally I get this error:
> >
> > Errors in 'jar:file:/MY_PROJECT_PATH/war/WEB-INF/lib/gin-1.5-post-
> > gwt-2.2.jar!/com/google/gwt/inject/client/assistedinject/
> > GinFactoryModuleBuilder.java'
> > Line 216: The method get(Class<capture#1-of ? extends T>) is undefined
> > for the type TypeLiteral
> > Line 223: The method get(Class<T>) is undefined for the type
> > TypeLiteral
> > Line 230: The method get(Class<capture#3-of ? extends T>) is undefined
> > for the type TypeLiteral
> > Line 246: The method get(Class<capture#5-of ? extends T>) is undefined
> > for the type TypeLiteral
> > ...
> >
> > Also, if I perform all those steps without adding the GWTP 0.5.1 I get
> > the same error. Does this mean the error is just GWT 2.2 or GIN 1.5
> > related?
> >
> > Do you have any idea of what I might be doing wrong?
> >
> > Thank you both for your help
> >
> > On Mar 10, 1:35 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > You need gin 1.5. This version is compatible with GWT 2.2.0
> >
> > > 2011/3/9 natas <ribeiro.si...@gmail.com>
> >
> > > > I'm having the same issue :s
> >
> > > > On Feb 21, 9:18 pm, Karthik <karthik...@gmail.com> wrote:
> > > > > I need a solution to the following problem :
> >
> > > > > I am running eclispe 3.6, GWT 2.2, Guice 3.0 rc2, gin 10 r137 and
> gwt-
> > > > > p 0.5, the code compiles fine but when I try to run the app i end
> up
> > > > > with the following error :
> >
> > > > > 13:40:24.062 [ERROR] [gwtphplacesample] Failed to create an
> instance
> > > > > of 'com.gwtplatform.samples.hplace.client.Gwtphplacesample' via
> > > > > deferred binding
> >
> > > > > java.lang.RuntimeException: Deferred binding failed for
> > > > > 'com.gwtplatform.samples.hplace.client.gin.ClientGinjector' (did
> you
> > > > > forget to inherit a required module?)
> > > > >     at
> > > > >
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
> > > > >     at com.google.gwt.core.client.GWT.create(GWT.java:98)
> > > > >     at
> > > > > com.gwtplatform.samples.hplace.client.Gwtphplacesample.&lt;init&gt;
> > > > > (Gwtphplacesample.java:29)
> > > > >     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > > Method)
> > > > >     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > > > Source)
> > > > >     at
> > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > > > > Source)
> > > > >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > > > >     at
> > > > >
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > > > > 465)
> > > > >     at
> com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > > > > 375)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler
> > > > .java:
> > > > > 183)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
> > > > nelServer.java:
> > > > > 510)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
> > > > :
> > > > > 352)
> > > > >     at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.lang.NoClassDefFoundError: com/google/inject/
> > > > > assistedinject/FactoryModuleBuilder
> > > > >     at
> >
> > > >
> com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe
> > > > neratorModule.java:
> > > > > 74)
> > > > >     at
> com.google.inject.AbstractModule.configure(AbstractModule.java:
> > > > > 59)
> > > > >     at com.google.inject.spi.Elements
> > > > > $RecordingBinder.install(Elements.java:223)
> > > > >     at
> com.google.inject.spi.Elements.getElements(Elements.java:101)
> > > > >     at com.google.inject.internal.InjectorShell
> > > > > $Builder.build(InjectorShell.java:132)
> > > > >     at
> >
> > > >
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCr
> > > > eator.java:
> > > > > 103)
> > > > >     at com.google.inject.Guice.createInjector(Guice.java:95)
> > > > >     at com.google.inject.Guice.createInjector(Guice.java:72)
> > > > >     at com.google.inject.Guice.createInjector(Guice.java:62)
> > > > >     at
> >
> > > >
> com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator
> > > > .java:
> > > > > 66)
> > > > >     at
> >
> > > >
> com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja
> > > > va:
> > > > > 48)
> > > > >     at
> >
> > > >
> com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator
> > > > ExtWrapper.java:
> > > > > 60)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally
> > > > (StandardGeneratorContext.java:
> > > > > 662)
> > > > >     at
> > > > >
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> > > > > 41)
> > > > >     at com.google.gwt.dev.shell.StandardRebindOracle
> > > > > $Rebinder.rebind(StandardRebindOracle.java:74)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j
> > > > ava:
> > > > > 259)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j
> > > > ava:
> > > > > 141)
> > > > >     at
> com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
> > > > > 585)
> > > > >     at
> > > > >
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > > > > 455)
> > > > >     at
> > > > >
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
> > > > >     at com.google.gwt.core.client.GWT.create(GWT.java:98)
> > > > >     at
> > > > > com.gwtplatform.samples.hplace.client.Gwtphplacesample.&lt;init&gt;
> > > > > (Gwtphplacesample.java:29)
> > > > >     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > > Method)
> > > > >     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> > > > > Source)
> > > > >     at
> > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> > > > > Source)
> > > > >     at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > > > >     at
> > > > >
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> > > > > 465)
> > > > >     at
> com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> > > > > 375)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler
> > > > .java:
> > > > > 183)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
> > > > nelServer.java:
> > > > > 510)
> > > > >     at
> >
> > > >
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
> > > > :
> > > > > 352)
> > > > >     at java.lang.Thread.run(Unknown Source)
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Christian Goudreau
www.arcbees.com

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

Reply via email to