Re: How to import Expenses project into Eclipse?
I figure out to run gwt:expense sample via mvn command line === 1. checkout svn checkout http://google-web-toolkit.googlecode.com/svn/trunk/ trunk svn checkout http://google-web-toolkit.googlecode.com/svn/tools/ tools 2. compile gwt ant buildonly 3. under the trunk directory, install gwt-xxx new jar mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt- dev -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=build/lib/gwt- dev.jar -DgeneratePom=true mvn install:install-file -DgroupId=com.google.gwt - DartifactId=gwt-user -Dversion=2.1-SNAPSHOT -Dpackaging=jar - Dfile=build/lib/gwt-user.jar -DgeneratePom=true mvn install:install-file -DgroupId=com.google.gwt - DartifactId=gwt-servlet -Dversion=2.1-SNAPSHOT -Dpackaging=jar - Dfile=build/lib/gwt-servlet.jar -DgeneratePom=true 4.change expenses\pox.xml gae-version == 1.3.7 reset -javaagent to : -javaagent:C:\eclipse\plugins \com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311427\appengine-java-sdk-1.3.7\lib\agent\appengine- agent.jar *** make sure you point the -javaagent to the right directory, mine is: C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle. 1.3.7_1.3.7.v201008311427\appengine-java-sdk-1.3.7\lib\agent\appengine- agent.jar 5. mvn package 6. mvn gae:run === On Sep 28, 4:39 am, hezjing hezj...@gmail.com wrote: I got a little bit further with the following steps: 1. Build the GWT source code: cd C:\gwt\trunk ant 2. Install the latest GWT JARs into local Maven repository:mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-servlet ^ -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=C:\gwt\trunk\build\staging\gwt-0.0.0\gwt-servlet.jarmvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-user ^ -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=C:\gwt\trunk\build\staging\gwt-0.0.0\gwt-user.jar 3. Import C:\gwt\trunk\samples\expenses to Eclipse as an existing Maven project. Now I'm able to browse the project without any error. How should I run the application from Eclipse? I tried: 1. Project - Properties - Google - App Engine Settings ... Check 'Use Google App Engine' Use specific SDK: 'C:\Documents and Settings\hezjing\.m2\repository\com\google\appengine - unknown version' 2. Project - Properties - Google - Web Toolkit Check 'Use Google Web Toolkit' Configure and use the SDK at C:\gwt\trunk\build\staging\gwt-0.0.0 3. Project - Properties - Google - Web Application Check 'The project has a WAR directory' WAR directory: src/main/webapp Uncheck 'Launch and deploy from this directory' With the above steps, I got an error that says: The App Engine SDK 'C:\Documents and Settings\cpt2t2o\.m2\repository\com\google\appengine' on the project's build path is not valid I also failed to run the application from command line using gae:run: C:\gwt\trunk\samples\expensesmvn gae:run [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'gae'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:google-app-engine-maven-plugin' does not exist or no valid version could be found I definitely need more help from you :-) On Tue, Sep 28, 2010 at 3:16 AM, Ed M mwamuf...@gmail.com wrote: where are you supposed to run the 'mvn package' command from? If the answer is the command prompt. I'm assuming that this means one has to actually download maven, not just the eclipse plugin -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Hez -- 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-tool...@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.
Re: Expenses Sample project
I got the same javax.validation error. The error is thrown out during the gwtc process. Something wrong with the gwt trunk version? -Super On Sep 8, 1:01 pm, Travis Camechis camec...@gmail.com wrote: I just did a fresh maven build it ran successfully. I did get some errors due to javax.validation problems but the build still ran. Make sure your up to date as well as your GWT_TOOLS. On Wed, Sep 8, 2010 at 11:58 AM, superdama zack...@gmail.com wrote: Travis, Good for mvn compile, no good for mvn gwt:compile. Any advice? On Sep 7, 10:07 am, Travis Camechis camec...@gmail.com wrote: try running tools/scripts/maven_script.sh from the root of the GWT checkout. This will build a current copy of GWT and them to your local maven repo. You should then be able to do a mvn compile, mvn gwt:compile, mvn gw:run. On Sun, Sep 5, 2010 at 9:08 AM, superdama zack...@gmail.com wrote: Hi guys, I got the same issue. Still don't know how to solve the problem. Frustrating. -Zack On Aug 25, 9:22 pm, tc camec...@gmail.com wrote: Does anyone know why I would get this error when trying to run the samples/expensesapp via maven. : java.lang.NoClassDefFoundError: org/datanucleus/ PersistenceConfiguration java.lang.NoClassDefFoundError: Could not initialize class com.google.gwt.sample.expenses.server.domain.EMF I am running this by using these commands. mvncompilemvngwt:compilemvngwt:run I also tried to usemvngae:run but get the same error. This is the sample project in the trunk of the GWT samples area. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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.
Re: Expenses Sample project
Travis, Good for mvn compile, no good for mvn gwt:compile. Any advice? On Sep 7, 10:07 am, Travis Camechis camec...@gmail.com wrote: try running tools/scripts/maven_script.sh from the root of the GWT checkout. This will build a current copy of GWT and them to your local maven repo. You should then be able to do a mvn compile, mvn gwt:compile, mvn gw:run. On Sun, Sep 5, 2010 at 9:08 AM, superdama zack...@gmail.com wrote: Hi guys, I got the same issue. Still don't know how to solve the problem. Frustrating. -Zack On Aug 25, 9:22 pm, tc camec...@gmail.com wrote: Does anyone know why I would get this error when trying to run the samples/expensesapp via maven. : java.lang.NoClassDefFoundError: org/datanucleus/ PersistenceConfiguration java.lang.NoClassDefFoundError: Could not initialize class com.google.gwt.sample.expenses.server.domain.EMF I am running this by using these commands. mvncompilemvngwt:compilemvngwt:run I also tried to usemvngae:run but get the same error. This is the sample project in the trunk of the GWT samples area. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@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.
Re: Expenses Sample project
Hi guys, I got the same issue. Still don't know how to solve the problem. Frustrating. -Zack On Aug 25, 9:22 pm, tc camec...@gmail.com wrote: Does anyone know why I would get this error when trying to run the samples/expensesapp via maven. : java.lang.NoClassDefFoundError: org/datanucleus/ PersistenceConfiguration java.lang.NoClassDefFoundError: Could not initialize class com.google.gwt.sample.expenses.server.domain.EMF I am running this by using these commands. mvncompilemvngwt:compilemvngwt:run I also tried to usemvngae:run but get the same error. This is the sample project in the trunk of the GWT samples area. -- 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-tool...@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.