trouble getting gwt-platform 0.6 running with GWT 2.2.0

227 views
Skip to first unread message

boz

unread,
Feb 25, 2011, 3:35:27 PM2/25/11
to GWTP

Hi,

I'm having trouble getting gwt-platform 0.6 running with GWT 2.2.0.
I've looked at all the docs and threads I can find but I'm still
stumped.

** error… **
12:18:49.258 [ERROR] [myproject] Failed to create an instance of
'com.myproject.client.ClientGinjector' via deferred binding

java.lang.RuntimeException: Deferred binding failed for
'com.myproject.client.app.WelcomePresenter$MyProxy' (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.myproject.client.com_myproject_client_ClientGinjectorImpl.create_Key
$type$com$myproject$client$app$WelcomePresenter$MyProxy$_annotation$
$none$$(com_myproject_client_ClientGinjectorImpl.java:408)
at
com.myproject.client.com_myproject_client_ClientGinjectorImpl.get_Key
$type$com$myproject$client$app$WelcomePresenter$MyProxy$_annotation$
$none$$(com_myproject_client_ClientGinjectorImpl.java:425)
at
com.myproject.client.com_myproject_client_ClientGinjectorImpl.<init>(com_myproject_client_ClientGinjectorImpl.java:
1460)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
465)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.myproject.client.myproject.<init>(myproject.java:12)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

** Here are all my jars… **
./lib/jukito-1.0-SNAPSHOT.jar
./lib/junit-4.8.2.jar
./lib/junit-4.9b2.jar
./lib/mockito-all-1.8.5.jar
./lib/mysql-connector-java-5.1.15-bin.jar
./lib/src/junit-4.8.2-src.jar
./war/WEB-INF/lib/aopalliance.jar
./war/WEB-INF/lib/gin-1.0-r170.jar
./war/WEB-INF/lib/guice-3.0-rc2.jar
./war/WEB-INF/lib/guice-assistedinject-3.0-rc2.jar
./war/WEB-INF/lib/guice-servlet-3.0-rc2.jar
./war/WEB-INF/lib/gwt-servlet.jar
./war/WEB-INF/lib/gwtp-all-0.6-SNAPSHOT.jar
./war/WEB-INF/lib/javax.inject.jar

** other stuff… **
I'm using Eclipse Helios (build-id: 20100917-0705)
My annotation factory path points to gwtp-all-0.6-SNAPSHOT.jar
When I first set up the project it used the GWT 2.1.1 plugin and I
manually changed it.

One thread mentioned a later version of gwtp-all...jar. How can I get
the latest? I tried doing an update from mercurial but it shows no
change since my last update (I'm a total nube with mercurial).

,boz

Christian Goudreau

unread,
Feb 25, 2011, 3:44:29 PM2/25/11
to gwt-pl...@googlegroups.com
Everything seems fine at first sight.

For latest GWTP:

A side note:
Jukito has release the official v1 and Gin the official v1.5.

Also if you manually change from v2.1.1 to v 2.2 you should maybe check if gwt-servlet is synchronized correctly.

Cheers,
--
Christian Goudreau

boz

unread,
Feb 25, 2011, 4:38:25 PM2/25/11
to GWTP
Thanks Christian,

I'm updating all my jars now. The gin download has a guice-
snapshot.jar. Any idea if I should that or stick with guice-3.0-
rc2.jar?

,boz

On Feb 25, 12:44 pm, Christian Goudreau <goudreau.christ...@gmail.com>
wrote:

Christian Goudreau

unread,
Feb 25, 2011, 4:39:31 PM2/25/11
to gwt-pl...@googlegroups.com
It should be alright with Guice Rc2, that is what I'm using. And as far as I know, even if they don't have the same name, it's the same release.

Cheers,
--
Christian Goudreau

Philippe Beaudoin

unread,
Feb 25, 2011, 4:40:00 PM2/25/11
to gwt-pl...@googlegroups.com
guice-3.0-rc2.jar should work.

boz

unread,
Feb 25, 2011, 5:06:00 PM2/25/11
to GWTP
Updating to the jars worked! ... I still have some classpath issues
but I think they're local. The gwtp app now launches! .., heres my
latest list of jars.

./lib/jukito-1.0.jar
./lib/junit-4.8.2.jar
./lib/mockito-all-1.8.5.jar
./war/WEB-INF/lib/aopalliance.jar
./war/WEB-INF/lib/gin-1.5-post-gwt-2.2.jar
./war/WEB-INF/lib/guice-3.0-rc2.jar
./war/WEB-INF/lib/guice-assistedinject-3.0-rc2.jar
./war/WEB-INF/lib/guice-servlet-3.0-rc2.jar
./war/WEB-INF/lib/gwt-servlet.jar
./war/WEB-INF/lib/gwtp-all-0.6-SNAPSHOT.jar
./war/WEB-INF/lib/javax.inject.jar


On Feb 25, 1:40 pm, Philippe Beaudoin <philippe.beaud...@gmail.com>
wrote:

Christian Goudreau

unread,
Feb 25, 2011, 5:54:07 PM2/25/11
to gwt-pl...@googlegroups.com
Nice to hear !

Cheers,
--
Christian Goudreau
Reply all
Reply to author
Forward
0 new messages