1 Attachment(s)
Problems with GWT in 1.2.0.RC1
Hi,
I'm having some problems getting GWT working properly - I am using the latest 1.2.0.RC1, downloaded this morning.
I am trying to create a simple GWT version of the pizza shop sample, executing the following commands:
// Spring Roo 1.2.0.RC1 [rev dcaa483] log opened at 2011-11-24 09:50:14
project --topLevelPackage com.springsource.roo.pizzashopRC1
persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT
entity jpa --class ~.domain.Topping --testAutomatically
field string --fieldName name --notNull --sizeMin 2
entity jpa --class ~.domain.Base --testAutomatically
field string --fieldName name --notNull --sizeMin 2
entity jpa --class ~.domain.Pizza --testAutomatically
field string --fieldName name --notNull --sizeMin 2
field number --fieldName price --type java.lang.Float
field set --fieldName toppings --type ~.domain.Topping
field reference --fieldName base --type ~.domain.Base
entity jpa --class ~.domain.PizzaOrder --testAutomatically
field string --fieldName name --notNull --sizeMin 2
field string --fieldName address --sizeMax 30
field number --fieldName total --type java.lang.Float
field date --fieldName deliveryDate --type java.util.Date
field set --fieldName pizzas --type ~.domain.Pizza
// script pizzaEntities.roo
web gwt setup
web gwt all --proxyPackage ~.gwt.proxy --requestPackage ~.gwt.request
perform eclipse
So far, so good. But when I import the project into Eclipse, I get the following build error:
The project 'pizzashoprc1' does not have any GWT SDKs on its build path
I can fix this by manually adding the GWT SDKs into the build path (I'm using GWT 2.4). However, when I try to start the app from Eclipse, using the Run As > Web Application, I get the error:
Could not find any host pages in project pizzashoprc1.
I can launch the app from the command line using mvn gwt:run, but then I can the following error when try to go to the URL in a browser:
onModuleLoad() threw an exception
Exception while loading module com.springsource.roo.pizzashoprc1.client.scaffold. Scaffold. See Development Mode for details.
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(Module Space.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadM odule(OophmSessionHandler.java:200) at com.google.gwt.dev.shell.BrowserChannelServer.proc essConnection(BrowserChannelServer.java:525) at com.google.gwt.dev.shell.BrowserChannelServer.run( BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.springsource.roo.pizzashoprc1.client.scaffold .ioc.DesktopInjector' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTB ridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:97) at com.springsource.roo.pizzashoprc1.client.scaffold. ioc.DesktopInjectorWrapper.getInjector(DesktopInje ctorWrapper.java:8) at com.springsource.roo.pizzashoprc1.client.scaffold. Scaffold.onModuleLoad(Scaffold.java:16) ... 9 more Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebind(Module Space.java:595) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCrea te(ModuleSpace.java:455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTB ridgeImpl.java:49) ... 12 more
This is the error in the GWT Dev Mode console:
Attachment 4445
Any ideas?