Wednesday, December 3, 2014

Re: GWT 2.6.0 to 2.7.0 leads to compiler error 'java.lang.IncompatibleClassChangeError'

Hi,
find out which dependency is including ASM and then try to exclude it in your pom.xml

In our project,  app-hmi-soaconnector was importing ASM as a sub-dependency due to CXF, so It did added the <exclusion> tag like you can see below directly in our main GWT web app project.

--- app_main/hmi/app-gwt-webapp/pom.xml (revision 7903)
+++ app_main/hmi/app-gwt-webapp/pom.xml (working copy)
@@ -130,6 +136,12 @@
  <artifactId>app-hmi-soaconnector</artifactId>
  <version>${app.version}</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>asm</artifactId>
+ <groupId>asm</groupId>
+ </exclusion>
+ </exclusions>
  </dependency>
  <dependency>

I found out the responsible using Eclipse Dependency Hierarchy.

Also remember to include codeserver dependency if you want to use super dev mode

@@ -79,6 +79,12 @@
  <version>${gwt.version}</version>
  <scope>runtime</scope>
  </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-codeserver</artifactId>
+ <version>${gwt.version}</version>
+ <scope>test</scope>
+ </dependency>
  <!-- Guice Injection dependencies -->
  <dependency>
  <groupId>com.google.inject</groupId>

Regards,
Cristiano



Il giorno Wed, 3 Dec 2014 alle 08:33 Thomas Broyer <t.broyer@gmail.com> ha scritto:

You must have an incompatible version of ASM in your build path. ASM only ensures backwards compatible starting with version 4, earlier versions should have been repackaged but it's not always the case (people have listed Hibernate as a culprit for example)

--
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-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@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 the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment