2 Replies Latest reply on Jan 2, 2014 12:23 PM by Jonathan Fuerth

    java.lang.NoClassDefFoundError: org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoaderImpl

    Matt Parker Newbie

      I have an Errai project with some webservices, but it seems it missing a class when I try and compile it under GWT in Eclipse:  org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoaderImpl.

       

      I looked into all the JAXRS jars highlighted below, and I couldn't find it. I'm assuming the pom file is wrong, but I'm not sure what jar file I'm missing to fix it.

       

      The dependecies in my POM file look like the following:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <project

          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

          xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

          <modelVersion>4.0.0</modelVersion>

       

          <groupId>com.gxm</groupId>

          <artifactId>test</artifactId>

          <version>1.0.0-SNAPSHOT</version>

          <packaging>war</packaging>

          <name>Test</name>

       

          <properties>

              <errai.version>2.4.2.Final</errai.version>

              <errai.devmode.version>3.0-SNAPSHOT</errai.devmode.version>

              <gwt.version>2.5.1</gwt.version>

              <slf4j.version>1.5.11</slf4j.version>

              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

              <javaee.version>3.0.2.Final</javaee.version>

              <errai.dev.context>${project.artifactId}</errai.dev.context>

              <errai.jboss.home>c:/Programs/Java/jboss-as-7.1.1.Final</errai.jboss.home>

          </properties>

       

          <dependencyManagement>

              <dependencies>

       

                  <dependency>

                      <groupId>org.jboss.errai.bom</groupId>

                      <artifactId>errai-version-master</artifactId>

                      <version>${errai.version}</version>

                      <type>pom</type>

                      <scope>import</scope>

                  </dependency>

       

                  <dependency>

                      <groupId>org.jboss.errai</groupId>

                      <artifactId>errai-parent</artifactId>

                      <version>${errai.version}</version>

                      <type>pom</type>

                      <scope>import</scope>

                  </dependency>

       

                  <dependency>

                      <groupId>org.jboss.spec</groupId>

                      <artifactId>jboss-javaee-6.0</artifactId>

                      <version>${javaee.version}</version>

                      <type>pom</type>

                      <scope>import</scope>

                  </dependency>

       

                  <dependency>

                      <groupId>org.jboss.weld</groupId>

                      <artifactId>weld-core</artifactId>

                      <version>1.1.5.Final</version>

                  </dependency>

                  <dependency>

                      <groupId>org.jboss.weld.servlet</groupId>

                      <artifactId>weld-servlet-core</artifactId>

                      <version>1.1.5.Final</version>

                  </dependency>

       

                  <dependency>

                      <groupId>org.jboss.errai</groupId>

                      <artifactId>errai-cdi-jboss</artifactId>

                      <version>${errai.devmode.version}</version>

                  </dependency>

       

                  <dependency>

                      <groupId>org.jboss.errai</groupId>

                      <artifactId>errai-client-local-class-hider</artifactId>

                      <version>${errai.devmode.version}</version>

                  </dependency>

              </dependencies>

          </dependencyManagement>

       

          <dependencies>

              <dependency>

                  <groupId>com.google.gwt</groupId>

                  <artifactId>gwt-user</artifactId>

                  <scope>provided</scope>

              </dependency>

              <dependency>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>errai-javaee-all</artifactId>

              </dependency>

              <dependency>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>errai-cordova</artifactId>

              </dependency>

              <dependency>

                  <groupId>org.jboss.spec</groupId>

                  <artifactId>jboss-javaee-6.0</artifactId>

                  <version>${javaee.version}</version>

                  <type>pom</type>

                  <scope>provided</scope>

              </dependency>

       

              <dependency>

                  <groupId>org.slf4j</groupId>

                  <artifactId>slf4j-log4j12</artifactId>

              </dependency>

       

              <dependency>

                  <groupId>junit</groupId>

                  <artifactId>junit</artifactId>

                  <scope>test</scope>

              </dependency>

       

              <dependency>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>errai-cdi-jboss</artifactId>

              </dependency>

       

              <dependency>

                  <groupId>org.jboss.errai</groupId>

                  <artifactId>errai-client-local-class-hider</artifactId>

              </dependency>

       

              <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-search</artifactId>

                  <version>4.2.0.Final</version>

              </dependency>

       

              <dependency>

                  <groupId>org.google.gwt.google-apis</groupId>

                  <artifactId>gwt-maps</artifactId>

                  <version>1.1.1</version>

              </dependency>

       

              <dependency>

                  <groupId>org.codehaus.enunciate</groupId>

                  <artifactId>maven-enunciate-plugin</artifactId>

                  <version>1.28</version>

              </dependency>

       

          </dependencies>

       

          <repositories>

              <repository>

                  <id>JBOSS_NEXUS</id>

                  <url>http://repository.jboss.org/nexus/content/groups/public</url>

              </repository>

              <repository>

                  <id>MAVEN REPOSITORY</id>

                  <url>http://repo1.maven.org/maven2</url>

                  <snapshots>

                      <enabled>false</enabled>

                  </snapshots>

                  <releases>

                      <enabled>true</enabled>

                  </releases>

              </repository>

          </repositories>

       

          <build>

              <finalName>${project.artifactId}</finalName>

              <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>

       

              <resources>

                  <resource>

                      <directory>src/main/java</directory>

                  </resource>

                  <resource>

                      <directory>src/main/resources</directory>

                  </resource>

              </resources>

       

              <pluginManagement>

                  <plugins>

                      <plugin>

                          <groupId>org.eclipse.m2e</groupId>

                          <artifactId>lifecycle-mapping</artifactId>

                          <version>1.0.0</version>

                          <configuration>

                              <lifecycleMappingMetadata>

                                  <pluginExecutions>

                                      <pluginExecution>

                                          <pluginExecutionFilter>

                                              <groupId>org.codehaus.mojo</groupId>

                                              <artifactId>gwt-maven-plugin</artifactId>

                                              <versionRange>[2.4.0,)</versionRange>

                                              <goals>

                                                  <goal>resources</goal>

                                              </goals>

                                          </pluginExecutionFilter>

                                          <action>

                                              <execute />

                                          </action>

                                      </pluginExecution>

                                  </pluginExecutions>

                              </lifecycleMappingMetadata>

                          </configuration>

                      </plugin>

                  </plugins>

              </pluginManagement>

       

              <plugins>

                  <plugin>

                      <groupId>org.codehaus.mojo</groupId>

                      <artifactId>gwt-maven-plugin</artifactId>

                      <version>${gwt.version}</version>

                      <executions>

                          <execution>

                              <goals>

                                  <goal>resources</goal>

                                  <goal>compile</goal>

                              </goals>

                          </execution>

                      </executions>

                      <configuration>

                          <extraJvmArgs>-Xmx712m -XX:CompileThreshold=7000

                              -XX:MaxPermSize=128M -Derrai.jboss.home=${errai.jboss.home}

                              -Derrai.dev.context=${errai.dev.context}

                              -Derrai.jboss.javaagent.path=${settings.localRepository}/org/jboss/errai/errai-client-local-class-hider/${errai.devmode.version}/errai-client-local-class-hider-${errai.devmode.version}.jar</extraJvmArgs>

                          <logLevel>INFO</logLevel>

                          <noServer>false</noServer>

                          <server>org.jboss.errai.cdi.server.gwt.JBossLauncher</server>

                          <disableCastChecking>true</disableCastChecking>

                          <runTarget>${errai.dev.context}/index.html</runTarget>

                          <soyc>false</soyc>

                          <hostedWebapp>src/main/webapp</hostedWebapp>

                      </configuration>

                  </plugin>

                  <plugin>

                      <artifactId>maven-clean-plugin</artifactId>

                      <version>2.4.1</version>

                      <configuration>

                          <filesets>

                              <fileset>

                                  <directory>${basedir}</directory>

                                  <includes>

                                      <include>src/main/webapp/app/</include>

                                      <include>src/main/webapp/WEB-INF/deploy/</include>

                                      <include>src/main/webapp/WEB-INF/lib/</include>

                                      <include>**/gwt-unitCache/**</include>

                                      <include>.errai/</include>

                                  </includes>

                              </fileset>

                          </filesets>

                      </configuration>

                  </plugin>

       

                  <plugin>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <version>2.3.2</version>

                      <configuration>

                          <source>1.6</source>

                          <target>1.6</target>

                      </configuration>

                  </plugin>

       

                  <!--

                  <plugin>

                      <groupId>org.codehaus.enunciate</groupId>

                      <artifactId>maven-enunciate-plugin</artifactId>

                      <version>1.28</version>

                      <configuration>

                          <configFile>C:/Projects/test/enunciate.xml</configFile>

                          <exports>

                              <jaxws.client.library.binaries>client.jar</jaxws.client.library.binaries>

                          </exports>

                      </configuration>

                      <executions>

                          <execution>

                              <goals>

                                  <goal>assemble</goal>

                              </goals>

                          </execution>

                      </executions>

                      <dependencies>

                          <dependency>

                              <groupId>org.codehaus.enunciate</groupId>

                              <artifactId>enunciate-amf</artifactId>

                              <version>1.28</version>

                          </dependency>

                      </dependencies>

                  </plugin>

                   -->

              </plugins>

          </build>

       

          <profiles>

              <profile>

                  <id>jboss7</id>

                  <activation>

                      <activeByDefault>true</activeByDefault>

                  </activation>

                  <build>

                      <plugins>

                          <plugin>

                              <artifactId>maven-war-plugin</artifactId>

                              <version>2.2</version>

                              <configuration>

                                  <packagingExcludes>**/javax/**/*.*,**/client/local/**/*.class</packagingExcludes>

                                  <outputFileNameMapping>@{artifactId}@-@{baseVersion}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>

                              </configuration>

                          </plugin>

                          <plugin>

                              <groupId>org.jboss.as.plugins</groupId>

                              <artifactId>jboss-as-maven-plugin</artifactId>

                              <version>7.1.1.Final</version>

                              <extensions>false</extensions>

                          </plugin>

                      </plugins>

                  </build>

                  <dependencies>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-jboss-as-support</artifactId>

                      </dependency>

       

                      <!-- TODO figure out how to force all these things to provided scope

                          without doing it explicitly in EVERY SINGLE ERRAI PROJECT!!!!111!!!!1 -->

                      <!-- Don't deploy any of this -->

                      <dependency>

                          <groupId>com.google.guava</groupId>

                          <artifactId>guava-gwt</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>hsqldb</groupId>

                          <artifactId>hsqldb</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>javax.annotation</groupId>

                          <artifactId>jsr250-api</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>javax.enterprise</groupId>

                          <artifactId>cdi-api</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>javax.inject</groupId>

                          <artifactId>javax.inject</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>javax.validation</groupId>

                          <artifactId>validation-api</artifactId>

                          <classifier>sources</classifier>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>javax.validation</groupId>

                          <artifactId>validation-api</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>junit</groupId>

                          <artifactId>junit</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.hibernate.common</groupId>

                          <artifactId>hibernate-commons-annotations</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.hibernate.javax.persistence</groupId>

                          <artifactId>hibernate-jpa-2.0-api</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.hibernate</groupId>

                          <artifactId>hibernate-core</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.hibernate</groupId>

                          <artifactId>hibernate-entitymanager</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.hibernate</groupId>

                          <artifactId>hibernate-validator</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.hibernate</groupId>

                          <artifactId>hibernate-validator</artifactId>

                          <classifier>sources</classifier>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-cdi-jetty</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-cdi-jboss</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-client-local-class-hider</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-codegen-gwt</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-data-binding</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-javax-enterprise</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-jaxrs-client</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-jpa-client</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-navigation</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai</groupId>

                          <artifactId>errai-tools</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.logging</groupId>

                          <artifactId>jboss-logging</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.resteasy</groupId>

                          <artifactId>jaxrs-api</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.spec.javax.interceptor</groupId>

                          <artifactId>jboss-interceptors-api_1.1_spec</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.spec.javax.transaction</groupId>

                          <artifactId>jboss-transaction-api_1.1_spec</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.weld.servlet</groupId>

                          <artifactId>weld-servlet-core</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.weld</groupId>

                          <artifactId>weld-core</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.weld</groupId>

                          <artifactId>weld-api</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.weld</groupId>

                          <artifactId>weld-spi</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>xml-apis</groupId>

                          <artifactId>xml-apis</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.jboss.errai.io.netty</groupId>

                          <artifactId>netty</artifactId>

                          <scope>provided</scope>

                      </dependency>

                      <dependency>

                          <groupId>org.mortbay.jetty</groupId>

                          <artifactId>jetty-naming</artifactId>

                          <scope>provided</scope>

                      </dependency>

                  </dependencies>

              </profile>

       

              <profile>

                  <id>mobile</id>

                  <build>

                      <plugins>

                          <plugin>

                              <groupId>org.jboss.errai</groupId>

                              <artifactId>cordova-maven-plugin</artifactId>

                              <version>2.4.1.Final</version>

                              <executions>

                                  <execution>

                                      <id>build</id>

                                      <phase>package</phase>

                                      <goals>

                                          <goal>build-project</goal>

                                      </goals>

                                  </execution>

                              </executions>

                          </plugin>

                      </plugins>

                  </build>

                  <pluginRepositories>

                      <pluginRepository>

                          <id>snapshots.jboss.org</id>

                          <name>JBoss Snapshot Repository</name>

                          <url>http://snapshots.jboss.org/maven2</url>

                          <layout>default</layout>

                          <snapshots>

                              <enabled>true</enabled>

                          </snapshots>

                      </pluginRepository>

                  </pluginRepositories>

              </profile>

          </profiles>

      </project>

       

      ==================================

       

      Compiling module com.gxm.test.App

         Validating units:

            Ignored 1 unit with compilation errors in first pass.

      Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

      java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at java.util.concurrent.FutureTask.report(Unknown Source)

          at java.util.concurrent.FutureTask.get(Unknown Source)

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:54)

          at org.jboss.errai.config.util.ClassScanner.getTypesAnnotatedWith(ClassScanner.java:97)

          at org.jboss.errai.config.util.ClassScanner.getTypesAnnotatedWith(ClassScanner.java:116)

          at org.jboss.errai.config.rebind.EnvUtil.newEnvironmentConfig(EnvUtil.java:231)

          at org.jboss.errai.config.rebind.EnvUtil.access$000(EnvUtil.java:56)

          at org.jboss.errai.config.rebind.EnvUtil$EnvironmentConfigCache.clear(EnvUtil.java:66)

          at org.jboss.errai.config.rebind.EnvUtil$EnvironmentConfigCache.<init>(EnvUtil.java:61)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at java.lang.Class.newInstance(Unknown Source)

          at org.jboss.errai.common.rebind.CacheUtil.getCache(CacheUtil.java:42)

          at org.jboss.errai.config.rebind.MetaClassBridgeUtil.populateMetaClassFactoryFromTypeOracle(MetaClassBridgeUtil.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator$2.run(AbstractAsyncGenerator.java:92)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.notifyStarting(AsyncGenerationJob.java:86)

          at org.jboss.errai.config.rebind.AsyncGenerators.notifyStarting(AsyncGenerators.java:190)

          at org.jboss.errai.config.rebind.AsyncGenerators.startAll(AsyncGenerators.java:144)

          at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:55)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:85)

          at org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator.generate(JaxrsProxyLoaderGenerator.java:55)

          at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

          at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

          at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)

          at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

          at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

          at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

          at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

          at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

          at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

          at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

          at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

          at com.google.gwt.dev.Compiler.run(Compiler.java:232)

          at com.google.gwt.dev.Compiler.run(Compiler.java:198)

          at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

          at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

          at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at org.jboss.errai.reflections.Store.<init>(Store.java:63)

          at org.jboss.errai.reflections.Store.<init>(Store.java:48)

          at org.jboss.errai.reflections.Reflections.<init>(Reflections.java:90)

          at org.jboss.errai.common.metadata.MetaDataScanner.<init>(MetaDataScanner.java:87)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:202)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:190)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:39)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:31)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at java.util.concurrent.FutureTask.report(Unknown Source)

          at java.util.concurrent.FutureTask.get(Unknown Source)

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:54)

          at org.jboss.errai.config.util.ClassScanner.getTypesAnnotatedWith(ClassScanner.java:97)

          at org.jboss.errai.config.util.ClassScanner.getTypesAnnotatedWith(ClassScanner.java:116)

          at org.jboss.errai.config.rebind.EnvUtil.newEnvironmentConfig(EnvUtil.java:231)

          at org.jboss.errai.config.rebind.EnvUtil.access$000(EnvUtil.java:56)

          at org.jboss.errai.config.rebind.EnvUtil$EnvironmentConfigCache.clear(EnvUtil.java:66)

          at org.jboss.errai.config.rebind.MetaClassBridgeUtil.populateMetaClassFactoryFromTypeOracle(MetaClassBridgeUtil.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator$2.run(AbstractAsyncGenerator.java:92)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.notifyStarting(AsyncGenerationJob.java:86)

          at org.jboss.errai.config.rebind.AsyncGenerators.notifyStarting(AsyncGenerators.java:190)

          at org.jboss.errai.config.rebind.AsyncGenerators.startAll(AsyncGenerators.java:144)

          at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:55)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:85)

          at org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator.generate(JaxrsProxyLoaderGenerator.java:55)

          at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

          at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

          at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)

          at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

          at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

          at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

          at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

          at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

          at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

          at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

          at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

          at com.google.gwt.dev.Compiler.run(Compiler.java:232)

          at com.google.gwt.dev.Compiler.run(Compiler.java:198)

          at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

          at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

          at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at org.jboss.errai.reflections.Store.<init>(Store.java:63)

          at org.jboss.errai.reflections.Store.<init>(Store.java:48)

          at org.jboss.errai.reflections.Reflections.<init>(Reflections.java:90)

          at org.jboss.errai.common.metadata.MetaDataScanner.<init>(MetaDataScanner.java:87)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:202)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:190)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:39)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:31)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at java.util.concurrent.FutureTask.report(Unknown Source)

          at java.util.concurrent.FutureTask.get(Unknown Source)

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:54)

          at org.jboss.errai.config.rebind.AsyncGenerators.startAll(AsyncGenerators.java:147)

          at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:55)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:85)

          at org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator.generate(JaxrsProxyLoaderGenerator.java:55)

          at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

          at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

          at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)

          at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

          at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

          at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

          at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

          at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

          at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

          at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

          at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

          at com.google.gwt.dev.Compiler.run(Compiler.java:232)

          at com.google.gwt.dev.Compiler.run(Compiler.java:198)

          at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

          at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

          at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at org.jboss.errai.reflections.Store.<init>(Store.java:63)

          at org.jboss.errai.reflections.Store.<init>(Store.java:48)

          at org.jboss.errai.reflections.Reflections.<init>(Reflections.java:90)

          at org.jboss.errai.common.metadata.MetaDataScanner.<init>(MetaDataScanner.java:87)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:202)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:190)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:39)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:31)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

      java.lang.RuntimeException: failed to load class metadata

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:62)

          at org.jboss.errai.config.rebind.AsyncGenerators.startAll(AsyncGenerators.java:147)

          at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:55)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:85)

          at org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator.generate(JaxrsProxyLoaderGenerator.java:55)

          at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

          at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

          at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)

          at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

          at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

          at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

          at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

          at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

          at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

          at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

          at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

          at com.google.gwt.dev.Compiler.run(Compiler.java:232)

          at com.google.gwt.dev.Compiler.run(Compiler.java:198)

          at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

          at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

          at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      Caused by: java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at java.util.concurrent.FutureTask.report(Unknown Source)

          at java.util.concurrent.FutureTask.get(Unknown Source)

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:54)

          ... 55 more

      Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at org.jboss.errai.reflections.Store.<init>(Store.java:63)

          at org.jboss.errai.reflections.Store.<init>(Store.java:48)

          at org.jboss.errai.reflections.Reflections.<init>(Reflections.java:90)

          at org.jboss.errai.common.metadata.MetaDataScanner.<init>(MetaDataScanner.java:87)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:202)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:190)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:39)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:31)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

         Computing all possible rebind results for 'org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader'

            Rebinding org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader

               Invoking generator org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator

                  [ERROR] Error generating JaxrsProxyLoaderImpl

      java.lang.RuntimeException: failed to load class metadata

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:62)

          at org.jboss.errai.config.rebind.AsyncGenerators.startAll(AsyncGenerators.java:147)

          at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:55)

          at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)

          at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:85)

          at org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator.generate(JaxrsProxyLoaderGenerator.java:55)

          at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

          at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

          at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

          at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

          at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

          at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

          at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)

          at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

          at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

          at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

          at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

          at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

          at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

          at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

          at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

          at com.google.gwt.dev.Compiler.run(Compiler.java:232)

          at com.google.gwt.dev.Compiler.run(Compiler.java:198)

          at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

          at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

          at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      Caused by: java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at java.util.concurrent.FutureTask.report(Unknown Source)

          at java.util.concurrent.FutureTask.get(Unknown Source)

          at org.jboss.errai.common.metadata.ScannerSingleton.getOrCreateInstance(ScannerSingleton.java:54)

          ... 55 more

      Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

          at org.jboss.errai.reflections.Store.<init>(Store.java:63)

          at org.jboss.errai.reflections.Store.<init>(Store.java:48)

          at org.jboss.errai.reflections.Reflections.<init>(Reflections.java:90)

          at org.jboss.errai.common.metadata.MetaDataScanner.<init>(MetaDataScanner.java:87)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:202)

          at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:190)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:39)

          at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:31)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

         [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)

            [WARN] org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoaderImpl

         [ERROR] An internal compiler exception occurred

      com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

          at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

          at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)

          at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

          at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

          at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

          at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

          at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

          at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

          at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

          at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

          at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

          at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

          at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

          at com.google.gwt.dev.Compiler.run(Compiler.java:232)

          at com.google.gwt.dev.Compiler.run(Compiler.java:198)

          at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

          at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

          at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

          at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      Caused by: java.lang.NoClassDefFoundError: org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoaderImpl

          at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:981)

          at com.google.gwt.dev.jjs.impl.UnifyAst.access$1500(UnifyAst.java:120)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:364)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

          at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

          at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

          at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

          at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

          ... 37 more

            [ERROR] at JaxrsModule.java(37): GWT.create(JaxrsProxyLoader.class)

               com.google.gwt.dev.jjs.ast.JMethodCall

            [ERROR] at JaxrsModule.java(37): (JaxrsProxyLoader) GWT.create(JaxrsProxyLoader.class)

               com.google.gwt.dev.jjs.ast.JCastOperation

            [ERROR] at JaxrsModule.java(37): JaxrsProxyLoader proxyLoader = (JaxrsProxyLoader) GWT.create(JaxrsProxyLoader.class)

               com.google.gwt.dev.jjs.ast.JDeclarationStatement

            [ERROR] at JaxrsModule.java(36): {

        JaxrsProxyLoader proxyLoader = (JaxrsProxyLoader) GWT.create(JaxrsProxyLoader.class);

        proxyLoader.loadProxies();

      }

               com.google.gwt.dev.jjs.ast.JBlock

            [ERROR] at JaxrsModule.java(36): {

        JaxrsProxyLoader proxyLoader = (JaxrsProxyLoader) GWT.create(JaxrsProxyLoader.class);

        proxyLoader.loadProxies();

      }

               com.google.gwt.dev.jjs.ast.JMethodBody

            [ERROR] at JaxrsModule.java(36): public void onModuleLoad();

       

               com.google.gwt.dev.jjs.ast.JMethod

        • 1. Re: java.lang.NoClassDefFoundError: org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoaderImpl
          Matt Parker Newbie

          This had some weird connection to the Enunciate dependencies in my project. Once I took those out, everything was compiling again.

          • 2. Re: java.lang.NoClassDefFoundError: org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoaderImpl
            Jonathan Fuerth Master

            Hi Matt,

             

            Thanks for following up with the solution that worked for you. I can give a few comments about the log you posted. I hope they'll help ease troubleshooting problems like this should you ever find yourself in this situation again:

             

            Compiling module com.gxm.test.App

               Validating units:

                  Ignored 1 unit with compilation errors in first pass.

            Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

            Whenever you see "ignored n unit(s) with compilation errors in first pass", it's always worthwhile adding <strict>true</strict> to your gwt-maven-plugin configuration, then running a full "mvn clean package" to production-mode compile your app. Most of the time, this will pinpoint the issue for you right away.

             

            I recommend leaving your GWT compile set for strict mode, which you can always do with Errai unless you're using the Bean Validation module: it depends on some validators that don't compile in strict mode, unfortunately.

             

            java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache;

            This says the GWT compiler couldn't see the CacheBuilder.build(CacheLoader) method, which is part of Google Guava. Perhaps your Enunciate dependency was pulling in an older version of Guava that didn't have this method?

             

               Computing all possible rebind results for 'org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader'

                  Rebinding org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader

                     Invoking generator org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator

                        [ERROR] Error generating JaxrsProxyLoaderImpl

            Whenever you see the message "Error generating [typeName]" and [typeName] is within the org.jboss.errai package namespace, that's an indication that one of Errai's code generators threw an exception. This guarantees you'll get a corresponding NoClassDefFoundError for the type that failed to generate later on in the log. This NoClassDefFoundError is just "fallout" from the previous errors, and it carries no useful information of its own.

             

            In general, the best way to troubleshoot sprawling errors you find in logs (this is true in Errai and elsewhere) is to start at the top. Find the first sign of trouble, and don't move on until you've solved that first issue. Often the subsequent issues will go away on their own.

             

            Cheers,

            Jonathan