java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default-cli) on project UsavAppV7: Failed to resolve artifact: Some problems were encountered while processing the POMs:[ERROR] [ERROR] Non-resolvable import POM: Failure to find com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 50, column 25[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 74, column 25
Yes, there's actually a bug in the parent POM: https://gwt-review.googlesource.com/9642(note: you need more than asm –see POM–, but possibly only under some conditions – classic DevMode?)
On Sun, Oct 12, 2014 at 8:53 PM, Ramon Salla <rsa...@gmail.com> wrote:
Adding http://mvnrepository.com/artifact/org.ow2.asm/asm/5.0.3 it worked again.
El diumenge 12 d’octubre de 2014 10:35:09 UTC+2, Thomas Broyer va escriure:Hi all,If you're using 2.7.0-SNAPSHOT, your build might start failing as of today as we started unbundling dependencies from gwt-dev as published to the Central Repository.java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitorIf you get this error, be sure to also update your gwt-maven-plugin to the latest 2.7.0-SNAPSHOT too.If that doesn't work, add gwt-dev or (better) gwt-codeserver as a project dependency (and report the problem to https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users). This is likely to become the preferred way to use GWT in the future, and the gwt-maven-plugin might stop automatically adding GWT deps to the classpath in gwt:compile or gwt:run in a future version (probably not 2.7 though): as we'll unbundle more dependencies from gwt-dev (and gwt-user), you might want to gain control over those dependencies (e.g. using a newer version of Guava, or ASM, etc.) and this is not possible with plugin dependencies as it's done today within the gwt-maven-plugin.Also noteworthy: that same change also turned com.google.gwt:gwt into a BOM (bill of material); that means that instead of including the <version> in all your GWT dependencies you can now declare com.google.gwt:gwt into your dependencyManagement section with <scope>import</scope>. As a bonus, it should ensure transitive dependencies to GWT will all use the same version, so you'll have fewer risks of conflicts.I'll soon update the GWT samples, WebAppCreator templates and various archetypes to use those new "best practices".
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
I think I'm getting two errors relating to the bugs in the POM that Thomas mentions above:
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default-cli) on project UsavAppV7: Failed to resolve artifact: Some problems were encountered while processing the POMs:[ERROR] [ERROR] Non-resolvable import POM: Failure to find com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 50, column 25[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 74, column 25
I have tried adding gwt-dev, gwt-codeserver, and the asm dependency but still getting it. Also tried forcing an update of snapshots/releases but no change.I'm still a bit green when it comes to maven.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.212 s
[INFO] Finished at: 2014-10-16T14:49:33-08:00
[INFO] Final Memory: 34M/448M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default) on project MyGxtProject31: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, /Users/branflake2267/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom, line 74, column 25
[ERROR] for project
[ERROR] -> [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/MojoExecutionException
Brandons-MacBook-Pro:GxtProject31 branflake2267$ maven version
-bash: maven: command not found
Brandons-MacBook-Pro:GxtProject31 branflake2267$ mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.7.0_40-ea, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
Brandons-MacBook-Pro:GxtProject31 branflake2267$
[INFO] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO] ... 62 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.640s
[INFO] Finished at: Thu Oct 16 17:28:18 CDT 2014
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project rpq-samples: Command [[
[ERROR] /bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/classes:/Users/colin/Documents/idea/gwt-rpq/rpq-samples/src/main/java:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/colin/.m2/repository/org/json/json/20090211/json-20090211.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-servlet/2.7.0-SNAPSHOT/gwt-servlet-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/colinalworth/rpq/0.0.1-SNAPSHOT/rpq-0.0.1-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-dev/2.7.0-SNAPSHOT/gwt-dev-2.7.0-SNAPSHOT.jar com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/rpq-samples-0.0.1-SNAPSHOT -localWorkers 2 -XfragmentCount -1 -sourceLevel auto -gen /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/.generated com.colinalworth.rpqsample.demo.HelloWorld com.colinalworth.rpqsample.defer.SimpleAutoBatching
[DEBUG] Verifying availability of /Users/colin/.m2/repository/org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pom from [sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, snapshots)]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.792s
[INFO] Finished at: Thu Oct 16 17:38:45 CDT 2014
[INFO] Final Memory: 19M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default) on project rpq-samples: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, /Users/colin/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom, line 74, column 25
Looks like codehaus's snapshot repo is down, so I'm unable to get the latest gwt-maven-plugin. This url gives a 504 gateway timeout from ngnix for me:
https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/gwt-maven-plugin/2.7.0-SNAPSHOT/maven-metadata.xml
If I set gwt-user and gwt-servlet to 2.7.0-SNAPSHOT and gwt-maven-plugin to 2.6.1, I get the NoClassDefFoundError:
[INFO] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO] ... 62 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.640s
[INFO] Finished at: Thu Oct 16 17:28:18 CDT 2014
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project rpq-samples: Command [[
...
[ERROR] /bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/classes:/Users/colin/Documents/idea/gwt-rpq/rpq-samples/src/main/java:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/colin/.m2/repository/org/json/json/20090211/json-20090211.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-servlet/2.7.0-SNAPSHOT/gwt-servlet-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/colinalworth/rpq/0.0.1-SNAPSHOT/rpq-0.0.1-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-dev/2.7.0-SNAPSHOT/gwt-dev-2.7.0-SNAPSHOT.jar com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/rpq-samples-0.0.1-SNAPSHOT -localWorkers 2<span style="color: #000;" class="styled-by-pret
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
Looks like codehaus's snapshot repo is down, so I'm unable to get the latest gwt-maven-plugin. This url gives a 504 gateway timeout from ngnix for me:
https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/gwt-maven-plugin/2.7.0-SNAPSHOT/maven-metadata.xml
If I set gwt-user and gwt-servlet to 2.7.0-SNAPSHOT and gwt-maven-plugin to 2.6.1, I get the NoClassDefFoundError:
[INFO] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor
[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO] ... 62 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.640s
[INFO] Finished at: Thu Oct 16 17:28:18 CDT 2014
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project rpq-samples: Command [[
[ERROR] /bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/classes:/Users/colin/Documents/idea/gwt-rpq/rpq-samples/src/main/java:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/colin/.m2/repository/org/json/json/20090211/json-20090211.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-servlet/2.7.0-SNAPSHOT/gwt-servlet-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/colinalworth/rpq/0.0.1-SNAPSHOT/rpq-0.0.1-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-dev/2.7.0-SNAPSHOT/gwt-dev-2.7.0-SNAPSHOT.jar com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/rpq-samples-0.0.1-SNAPSHOT -localWorkers 2 -XfragmentCount -1 -sourceLevel auto -gen /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/.generated com.colinalworth.rpqsample.demo.HelloWorld com.colinalworth.rpqsample.defer.SimpleAutoBatching
All GWT copies on the classpath are 2.7.0-SNAPSHOT, its just building under gwt-m-p 2.6.1.
Is this really expected?
I'm probably misunderstanding how scope=import works and its importance (ha) to the build, but the strong implication seems to be that gwt-m-p is pulling in gwt-dev, but not transitive dependencies.
Pre-send edit: codehaus is back, pulling down results now. As with others, I am getting that org.ow2.asm:asm-parent:pom:5.0.3 is inexplicably missing, even if I delete it from my .m2/repository and the build *downloads* it, it claims it can't find it. Full gist from debug log: https://gist.github.com/niloc132/da63de6d8e8da90f49d7
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
This is really really strange, as I'd swear that everything was working for me with Maven 3.0.5 (before sending the patch to update the samples in GWT, I ran "mvn clean verify" and then "mvn gwt:run"). I never "mvn install" (or exceptionally once or twice a year) anything on my machine so the snapshots were all coming from the remote repositories.