debug mode from eclipse

246 views
Skip to first unread message

Jim

unread,
Jun 24, 2012, 5:39:59 PM6/24/12
to gwt...@googlegroups.com
Hi.  I'm new to GWT and came across your project.  You've got some really great stuff here. 

I've been struggling a little to figure out how to build and run your project from source using eclipse indigo.  I imported the base project as a maven project and was able to build it successfully.  Now I'm trying to load the samples in development mode but I get runtime errors in chrome each time I tried to run them. 

Is it possible to load the samples, make changes and test it in the development environment?

Rob Ferguson

unread,
Jun 24, 2012, 5:51:52 PM6/24/12
to gwt...@googlegroups.com
Hi,

I have migrated to Eclipse Indigo so yes you should be able to build the source and samples from the trunk:

-> http://code.google.com/p/gwt-cx/source/browse/#svn%2Ftrunk

You will need to be more specific re the issues you are experiencing.

These new posts may help:

-> http://kiahu.com/support/tutorials/

BTW, I am working on an updated download (.zip) at the moment.

Cheers
Rob

Kiahu.com

Jim

unread,
Jun 24, 2012, 7:37:48 PM6/24/12
to gwt...@googlegroups.com
Thanks.  I'm probably just missing a step somewhere.

Again, the only things I have installed are the maven command line tools, (so I could add the missing dependencies using mvn install) and eclipse with plugins.

 I've imported using:

File->Import->Maven->Import Existing Maven Project

then I select the gwtcx folder

If I right click on the project I can select Run As->Maven Build....

Then under Goals I type:  clean install

After that I import one of the sample apps:

File->Import->Maven->Import Existing Maven Project

then I select the gwtcx\gwtcx-samples\gwtcx-samples-gwt\gwtcx-samples-gwt-basic folder

If I right click on the project I can select Run As->Maven Build....

Then under Goals I type:  gwt:run

After that the browser throws up the following error:

onModuleLoad() threw an exception

Exception while loading module com.gwtcx.sample.basic.client.entrypoint.Basic. See Development Mode for details.

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200) at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525) at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.event.shared.EventBus' (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:97) at
 com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.create_Key$type$com$google$gwt$event$shared$EventBus$_annotation$$none$$(DesktopGinjectorImpl.java:638) at
com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.get_Key$type$com$google$gwt$event$shared$EventBus$_annotation$$none$$(DesktopGinjectorImpl.java:652) at
com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.create_Key$type$com$gwtcx$sample$basic$client$place$BasicPlaceManager$_annotation$$none$$(DesktopGinjectorImpl.java:670) at
com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.get_Key$type$com$gwtcx$sample$basic$client$place$BasicPlaceManager$_annotation$$none$$(DesktopGinjectorImpl.java:681) at
com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.create_Key$type$com$gwtplatform$mvp$client$proxy$PlaceManager$_annotation$$none$$(DesktopGinjectorImpl.java:78) at
com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.get_Key$type$com$gwtplatform$mvp$client$proxy$PlaceManager$_annotation$$none$$(DesktopGinjectorImpl.java:90) at
com.gwtcx.sample.basic.client.gin.DesktopGinjectorImpl.getPlaceManager(DesktopGinjectorImpl.java:15) at com.gwtcx.sample.basic.client.presenter.MainPagePresenterMyProxyImpl.delayedBind(MainPagePresenterMyProxyImpl.java:53) at
com.gwtplatform.mvp.client.DelayedBindRegistry.bind(DelayedBindRegistry.java:48) at com.gwtcx.sample.basic.client.entrypoint.Basic.onModuleLoad(Basic.java:34)
... 9 more Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... 20 more



 

On Sunday, June 24, 2012 5:51:52 PM UTC-4, Rob wrote:
Hi,

I have migrated to Eclipse Indigo so yes you should be able to build the source and samples from the trunk:

-> http://code.google.com/p/gwt-cx/source/browse/#svn%2Ftrunk

You will need to be more specific re the issues you are experiencing.

These new posts may help:

-> http://kiahu.com/support/tutorials/

BTW, I am working on an updated download (.zip) at the moment.

Cheers
Rob

Kiahu.com

Rob Ferguson

unread,
Jun 24, 2012, 9:54:23 PM6/24/12
to gwt...@googlegroups.com
Hi,

Ok, first things first, your environment have you set it up as per this post:

->  http://kiahu.com/tutorial/working-with-gwt-maven-and-the-google-plugin-for-eclipse/

If you have you can test your environment by following this post:

-> http://kiahu.com/tutorial/generate-a-skeleton-project-using-gwt-and-maven/

If your environment is good to go then you can check out the source and then execute the following commands (in the root folder gwtcx) from your IDE or the command line:

mvn gwt:clean
mvn clean package
mvn gwt:run

That will build gwt-cx and the gwt-cx samples.

I am in the middle of refactoring the samples (and a few other things) so your best bet is to try out the Ext GWT sample:

-> http://code.google.com/p/gwt-cx/source/browse/#svn%2Ftrunk%2Fgwtcx%2Fgwtcx-samples%2Fgwtcx-samples-extgwt%2Fgwtcx-samples-extgwt-serendipity%253Fstate%253Dclosed

This sample use GAE so you need to launch the dev app sever (from the target directory e.g. C:\tools\IDEs\helios\workspace\kiahu\gwtcx\gwtcx-samples\gwtcx-samples-extgwt\gwtcx-samples-extgwt-serendipity\target)

For example:

C:\tools\gwt-appengine-java-sdk-1.6.3.1\bin\dev_appserver.cmd gwtcx-samples-extgwt-serendipity-1.0.0-dp1

and then navigate to the host page:

http://localhost:8080/index.html

When your finished just Control-C in the terminal session (command prompt).

BTW, you also need -> https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Java

Let me know how you go.

N.B. I am also working on a stand alone sample that is to be discussed in this:

-> http://kiahu.com/tutorial/getting-started-with-kiahu-cx/

 and subsequent posts.

Cheers
Rob

Kiahu.com

Jim

unread,
Jun 25, 2012, 10:21:27 PM6/25/12
to gwt...@googlegroups.com
Thanks for your help Rob it seems I'm a least a little closer.

It looks like my environment is set up ok.  The skeleton project ran ok.  The "mvn gwt:clean" command seems to execute correctly, as does the "mvn clean package" command

The "mvn gwt:run" command doesn't seem to work though:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] The Kiahu Customer Experience (CX) framework
[INFO] GWTCX Core
[INFO] GWTCX Core - Shared
[INFO] GWTCX Core - Client
[INFO] GWTCX Core Client - Ext GWT
[INFO] GWTCX Core Client - smartGWT
[INFO] GWTCX Core - Server
[INFO] GWTCX Core - Server GAE
[INFO] GWTCX Samples
[INFO] GWTCX Ext GWT Samples
[INFO] GWTCX Ext GWT Samples - Serendipity
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building The Kiahu Customer Experience (CX) framework 1.0.0-dp1
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] >>> gwt-maven-plugin:2.4.0:run (default-cli) @ gwtcx >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ gwtcx ---
[INFO]
[INFO] <<< gwt-maven-plugin:2.4.0:run (default-cli) @ gwtcx <<<
[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:run (default-cli) @ gwtcx ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] The Kiahu Customer Experience (CX) framework ...... FAILURE [0.990s]
[INFO] GWTCX Core ........................................ SKIPPED
[INFO] GWTCX Core - Shared ............................... SKIPPED
[INFO] GWTCX Core - Client ............................... SKIPPED
[INFO] GWTCX Core Client - Ext GWT ....................... SKIPPED
[INFO] GWTCX Core Client - smartGWT ...................... SKIPPED
[INFO] GWTCX Core - Server ............................... SKIPPED
[INFO] GWTCX Core - Server GAE ........................... SKIPPED
[INFO] GWTCX Samples ..................................... SKIPPED
[INFO] GWTCX Ext GWT Samples ............................. SKIPPED
[INFO] GWTCX Ext GWT Samples - Serendipity ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.760s
[INFO] Finished at: Mon Jun 25 22:11:49 EDT 2012
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:run (default-cli) on project gwtcx: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:run are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException

The execute command seems to fail as well:

C:\Users\Jim\Downloads\appengine-java-sdk-1.6.6\appengine-java-sdk-1.6.6>bin\dev_appserver.cmd C:\Users\Jim\workspace\gwt-cx-read-only\gwtcx\gwtcx-samples\gwtcx-samples-extgwt\gwtcx-samples-extgwt-serendipity\target
Jun 26, 2012 1:55:08 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
com.google.apphosting.utils.config.AppEngineConfigException: Supplied application has to contain WEB-INF directory.
        at com.google.appengine.tools.development.JettyContainerService.determineAppRoot(JettyContainerService.java:332)
        at com.google.appengine.tools.development.JettyContainerService.initContext(JettyContainerService.java:156)
        at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:236)
        at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146)
        at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:189)
        at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
        at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:128)
        at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:104)
C:\Users\Jim\Downloads\appengine-java-sdk-1.6.6\appengine-java-sdk-1.6.6>




On Sunday, June 24, 2012 9:54:23 PM UTC-4, Rob wrote:
Hi,

Rob Ferguson

unread,
Jun 25, 2012, 11:18:27 PM6/25/12
to gwt...@googlegroups.com
Hi,

Ah, my bad:


mvn gwt:clean
mvn clean package

Executed in the root folder "gwtcx" (or right-click on the pom.xml in the IDE) will build gwt-cx and the gwt-cx samples.

To run the Ext GWT Serendipity sample you need to launch the GAE dev app sever (e.g from the target directory e.g. C:\tools\IDEs\helios\workspace
\kiahu\gwtcx\gwtcx-samples\gwtcx-samples-extgwt\gwtcx-samples-extgwt-serendipity\target)

For example:

C:\tools\gwt-appengine-java-sdk-1.6.3.1\bin\dev_appserver.cmd gwtcx-samples-extgwt-serendipity-1.0.0-dp1

and then navigate to the host page:

http://localhost:8080/index.html

Also re [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

Have you installed the m2e plugin as per this post -> http://kiahu.com/tutorial/working-with-gwt-maven-and-the-google-plugin-for-eclipse/


Let me know how you go.

Cheers
Rob

Jim

unread,
Jun 28, 2012, 1:00:02 PM6/28/12
to gwt...@googlegroups.com
Thanks for the help Rob.  This did the trick.

Jim


I think you are using a newer version of the App Engine toolkit.

As per the error -> WEB-INF/appengine-web.xml
Jun 27, 2012 2:32:49 AM com.google.apphosting.utils.config.AppEngineWebXmlReader
 readAppEngineWebXml

Can you try adding a threadsafe element to the appengine-web.xml file

->

<threadsafe>true</threadsafe>

->

Cheers
Rob


On Monday, June 25, 2012 11:18:27 PM UTC-4, Rob wrote:
Hi,

Ah, my bad:

mvn gwt:clean
mvn clean package

Executed in the root folder "gwtcx" (or right-click on the pom.xml in the IDE) will build gwt-cx and the gwt-cx samples.

To run the Ext GWT Serendipity sample you need to launch the GAE dev app sever (e.g from the target directory e.g. C:\tools\IDEs\helios\workspace
\kiahu\gwtcx\gwtcx-samples\gwtcx-samples-extgwt\gwtcx-samples-extgwt-serendipity\target)

For example:

C:\tools\gwt-appengine-java-sdk-1.6.3.1\bin\dev_appserver.cmd gwtcx-samples-extgwt-serendipity-1.0.0-dp1

and then navigate to the host page:

http://localhost:8080/index.html

Also re [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available

Have you installed the m2e plugin as per this post -> http://kiahu.com/tutorial/working-with-gwt-maven-and-the-google-plugin-for-eclipse/

Let me know how you go.

Cheers
Rob

Reply all
Reply to author
Forward
0 new messages