jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x GWT Plugin
  • MGWT-323

gwt:run does not work on fresh project: java.lang.NoClassDefFoundError: com/google/gwt/i18n/tools/I18NSync

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.4.0
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Windows, tried both cygwin and cmd, maven 2 and maven 3

Description

Hello

After creating a fresh project

mvn archetype:generate -DarchetypeRepository=repo1.maven.org -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.4.0

and running

mvn gwt:run

The error below is returned

[ERROR] java.lang.NoClassDefFoundError: com/google/gwt/i18n/tools/I18NSync
[ERROR] Caused by: java.lang.ClassNotFoundException: com.google.gwt.i18n.tools.I18NSync
[ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[ERROR]         at java.security.AccessController.doPrivileged(Native Method)
[ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[ERROR] Could not find the main class: com.google.gwt.i18n.tools.I18NSync.  Program will exit.
[ERROR] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------

Please let me know if you need additional information.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
jieryn added a comment - 21/Feb/12 10:58 PM

I tried to reproduce this problem just now, I am not seeing the problem. I even deliberately forced clean gwt:i18n goals and it worked fine. I was able to gwt:run and send my name.

Show
jieryn added a comment - 21/Feb/12 10:58 PM I tried to reproduce this problem just now, I am not seeing the problem. I even deliberately forced clean gwt:i18n goals and it worked fine. I was able to gwt:run and send my name.
Hide
Permalink
jieryn added a comment - 21/Feb/12 11:03 PM
$ mvn clean gwt:i18n
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt ---
[INFO] Deleting /home/jlf/tmp/gwt/gwt/target
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:i18n (default-cli) @ gwt ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.395s
[INFO] Finished at: Wed Feb 22 00:01:53 EST 2012
[INFO] Final Memory: 6M/238M
[INFO] ------------------------------------------------------------------------
$ mvn clean gwt:run 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt ---
[INFO] Deleting /home/jlf/tmp/gwt/gwt/target
[INFO] 
[INFO] >>> gwt-maven-plugin:2.4.0:run (default-cli) @ gwt >>>
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:i18n (default) @ gwt ---
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:generateAsync (default) @ gwt ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ gwt ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ gwt ---
[INFO] Compiling 6 source files to /home/jlf/tmp/gwt/gwt/target/gwt-1.0-SNAPSHOT/WEB-INF/classes
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:exploded (default) @ gwt ---
[INFO] Exploding webapp
[INFO] Assembling webapp [gwt] in [/home/jlf/tmp/gwt/gwt/target/gwt-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jlf/tmp/gwt/gwt/src/main/webapp]
[INFO] Webapp assembled in [82 msecs]
[INFO] 
[INFO] <<< gwt-maven-plugin:2.4.0:run (default-cli) @ gwt <<<
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:run (default-cli) @ gwt ---
[INFO] create exploded Jetty webapp in /home/jlf/tmp/gwt/gwt/target/gwt-1.0-SNAPSHOT
[INFO] auto discovered modules [com.acme.Application]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.741s
[INFO] Finished at: Wed Feb 22 00:02:43 EST 2012
[INFO] Final Memory: 12M/238M
[INFO] ------------------------------------------------------------------------
Show
jieryn added a comment - 21/Feb/12 11:03 PM
$ mvn clean gwt:i18n
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt ---
[INFO] Deleting /home/jlf/tmp/gwt/gwt/target
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:i18n (default-cli) @ gwt ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.395s
[INFO] Finished at: Wed Feb 22 00:01:53 EST 2012
[INFO] Final Memory: 6M/238M
[INFO] ------------------------------------------------------------------------
$ mvn clean gwt:run 
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GWT Maven Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwt ---
[INFO] Deleting /home/jlf/tmp/gwt/gwt/target
[INFO] 
[INFO] >>> gwt-maven-plugin:2.4.0:run (default-cli) @ gwt >>>
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:i18n (default) @ gwt ---
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:generateAsync (default) @ gwt ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ gwt ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ gwt ---
[INFO] Compiling 6 source files to /home/jlf/tmp/gwt/gwt/target/gwt-1.0-SNAPSHOT/WEB-INF/classes
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:exploded (default) @ gwt ---
[INFO] Exploding webapp
[INFO] Assembling webapp [gwt] in [/home/jlf/tmp/gwt/gwt/target/gwt-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jlf/tmp/gwt/gwt/src/main/webapp]
[INFO] Webapp assembled in [82 msecs]
[INFO] 
[INFO] <<< gwt-maven-plugin:2.4.0:run (default-cli) @ gwt <<<
[INFO] 
[INFO] --- gwt-maven-plugin:2.4.0:run (default-cli) @ gwt ---
[INFO] create exploded Jetty webapp in /home/jlf/tmp/gwt/gwt/target/gwt-1.0-SNAPSHOT
[INFO] auto discovered modules [com.acme.Application]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.741s
[INFO] Finished at: Wed Feb 22 00:02:43 EST 2012
[INFO] Final Memory: 12M/238M
[INFO] ------------------------------------------------------------------------

People

  • Assignee:
    Unassigned
    Reporter:
    Jonas Basanavicius
Vote (0)
Watch (1)

Dates

  • Created:
    02/Feb/12 4:28 PM
    Updated:
    21/Feb/12 11:03 PM
    Resolved:
    21/Feb/12 11:03 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.