Announcement Announcement Module
Collapse
No announcement yet.
Problems with GWT in 1.2.0.RC1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    Any ideas?
    Attached Files

  • #2
    The screenshot of the GWT console didn't come out too well - the forum appears to shrink the size of it.
    So, I've done my best to paste the text in below (GWT console doesn't make it easy!):

    00:00:27.706 [INFO] Loading module applicationScaffold
    00:00:27.707 [INFO] Top URL: http://127.0.0.1:8888/ApplicationSca...127.0.0.1:9997
    00:00:27.707 [INFO] User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15

    00:00:34.275 [DEBUG] Validating newly compiled units
    00:00:34.275 [INFO] Ignored 95 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

    00:00:35.271 [DEBUG] Rebinding com.springsource.roo.pizzashoprc1.client.scaffold. ioc.DesktopInjector
    00:00:35.271 [DEBUG] Checking rule <generate-with class='com.google.gwt.inject.rebind.GinjectorGener ator'/>
    00:00:35.271 [ERROR] Errors in 'file:/C:/Roo_PoC/pizzaGwtRc1/src/main/java/com/springsource/roo/pizzashoprc1/client/managed/request/ApplicationRequestFactory.java'
    00:00:35.271 [ERROR] Line 13: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.request.Base Request; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 15: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.request.Pizz aOrderRequest; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 17: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.request.Pizz aRequest; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 19: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.request.Topp ingRequest; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Errors in 'file:/C:/Roo_PoC/pizzaGwtRc1/src/main/java/com/springsource/roo/pizzashoprc1/client/managed/activity/ApplicationDetailsActivities_Roo_Gwt.java'
    00:00:35.271 [ERROR] Line 32: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.BasePr oxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 37: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.PizzaO rderProxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 42: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.PizzaP roxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 47: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.Toppin gProxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Errors in 'file:/C:/Roo_PoC/pizzaGwtRc1/src/main/java/com/springsource/roo/pizzashoprc1/client/managed/activity/ApplicationMasterActivities_Roo_Gwt.java'
    00:00:35.271 [ERROR] Line 41: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.BasePr oxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 46: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.PizzaO rderProxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 51: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.PizzaP roxy; did you forget to inherit a required module?
    00:00:35.271 [ERROR] Line 56: No source code is available for type com.springsource.roo.pizzashoprc1.gwt.proxy.Toppin gProxy; did you forget to inherit a required module?
    00:00:35.272 [ERROR] Unable to find type 'com.springsource.roo.pizzashoprc1.client.scaffold .ioc.DesktopInjector'
    00:00:35.273 [ERROR] Hint: Previous compiler errors may have made this type unavailable
    00:00:35.273 [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

    00:00:35.273 [ERROR] Deferred binding failed for 'com.springsource.roo.pizzashoprc1.client.scaffold .ioc.DesktopInjector'; expect subsequent failures

    00:00:35.281 [ERROR] Unable to load module entry point class com.springsource.roo.pizzashoprc1.client.scaffold. Scaffold (see associated exception for details)
    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) 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: 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) 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) 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)

    00:00:35.281 [ERROR] Failed to load module 'applicationScaffold' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15' at 127.0.0.1:50280

    Comment


    • #3
      Please log a Jira ticket for this. Roo 1.2.0.M1 does not run your scaffolded app either.
      Alan
      Last edited by Alan Stewart; Nov 24th, 2011, 05:37 AM.

      Comment


      • #4
        Jira raised: https://jira.springsource.org/browse/ROO-2931

        Comment

        Working...
        X