Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4208

Unable to deploy a simple war inside EAP 6.2: guava problem? IncompatibleClassChangeError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • jBPM 6.0.0.Final
    • jBPM 6.0.0.Final
    • None
    • None

      A simple war built using the following dependencies fails to deploy.

      Dependencies:
      <dependencies>
      <dependency>
      <groupId>javax.enterprise</groupId>
      <artifactId>cdi-api</artifactId>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-flow</artifactId>
      </dependency>
      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-flow-builder</artifactId>
      </dependency>
      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-bpmn2</artifactId>
      </dependency>
      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-persistence-jpa</artifactId>
      </dependency>
      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-human-task-core</artifactId>
      </dependency>
      <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-runtime-manager</artifactId>
      </dependency>
      </dependencies>

      Stacktracke:
      18:35:01,125 INFO [org.jboss.as.repository] (HttpManagementService-threads - 3) JBAS014900: Content added at location /home/rick/apps/jboss/standalone/data/content/45/9432261408944343828e01a10964924a687311/content
      18:35:05,636 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "drg-lite-core-0.1-SNAPSHOT.war" (runtime-name: "drg-lite-core-0.1-SNAPSHOT.war")
      18:35:07,060 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
      18:35:07,066 INFO [org.jboss.as.pojo] (MSC service thread 1-2) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).

      18:37:14,664 WARN [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016010: Warning while parsing vfs:/content/drg-lite-core-0.1-SNAPSHOT.war/WEB-INF/lib/guava-15.0.jar/META-INF/beans.xml:5 schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
      18:37:14,838 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment drg-lite-core-0.1-SNAPSHOT.war
      18:37:14,928 INFO [org.jboss.weld.deployer] (MSC service thread 1-10) JBAS016005: Starting Services for CDI deployment: drg-lite-core-0.1-SNAPSHOT.war
      18:37:14,968 INFO [org.jboss.weld.Version] (MSC service thread 1-10) WELD-000900 1.1.16 (redhat)
      18:37:14,997 INFO [org.jboss.weld.deployer] (MSC service thread 1-15) JBAS016008: Starting weld service for deployment drg-lite-core-0.1-SNAPSHOT.war
      18:37:15,165 INFO [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-5) Solder Config XML provider starting...
      18:37:15,166 INFO [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-5) Loading XmlDocumentProvider: org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider
      18:37:15,174 INFO [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-5) Reading XML file: vfs:/content/drg-lite-core-0.1-SNAPSHOT.war/WEB-INF/beans.xml
      18:37:15,178 INFO [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-5) Reading XML file: vfs:/content/drg-lite-core-0.1-SNAPSHOT.war/WEB-INF/lib/seam-transaction-3.1.0.Final.jar/META-INF/beans.xml
      18:37:15,179 INFO [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-5) Reading XML file: vfs:/content/drg-lite-core-0.1-SNAPSHOT.war/WEB-INF/lib/jbpm-human-task-core-6.0.0.Final.jar/META-INF/beans.xml
      18:37:15,180 INFO [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-5) Reading XML file: vfs:/content/drg-lite-core-0.1-SNAPSHOT.war/WEB-INF/lib/guava-15.0.jar/META-INF/beans.xml
      18:37:15,182 INFO [org.jboss.solder.Version] (MSC service thread 1-5) Solder 3.1.0.Final (build id: 3.1.0.Final)
      18:37:15,350 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory from being installed as bean due to @Veto annotation
      18:37:15,502 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jbpm.services.task.wih.NonManagedLocalHTWorkItemHandler from being installed as bean due to @Veto annotation
      18:37:15,587 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jboss.seam.transaction.NoTransaction from being installed as bean due to @Veto annotation
      18:37:15,591 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jboss.seam.transaction.UTTransaction from being installed as bean due to @Veto annotation
      18:37:15,635 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jboss.seam.transaction.HibernateTransaction from being installed as bean due to @Veto annotation
      18:37:15,648 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jboss.seam.transaction.SeSynchronizations from being installed as bean due to @Veto annotation
      18:37:15,656 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jboss.seam.transaction.CMTTransaction from being installed as bean due to @Veto annotation
      18:37:15,660 INFO [org.jboss.solder.core.CoreExtension] (MSC service thread 1-5) Preventing class org.jboss.seam.transaction.EntityTransaction from being installed as bean due to @Veto annotation
      18:37:15,706 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."drg-lite-core-0.1-SNAPSHOT.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."drg-lite-core-0.1-SNAPSHOT.war".WeldStartService: Failed to start service

      Caused by: org.jboss.weld.exceptions.WeldException: WELD-000830 Unable to load the cache value for the key class com.google.common.collect.HashBiMap$EntrySet$1

      Caused by: com.google.common.util.concurrent.UncheckedExecutionException: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class com.google.common.collect.HashBiMap$Itr

      Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class com.google.common.collect.HashBiMap$Itr
      at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:176)
      at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:146)
      at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:126)
      at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.load(ClassTransformer.java:60)
      at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.load(ClassTransformer.java:51)
      at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
      at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
      at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
      at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
      ... 18 more
      Caused by: java.lang.IncompatibleClassChangeError: com.google.common.collect.HashBiMap and com.google.common.collect.HashBiMap$Itr disagree on InnerClasses attribute
      at java.lang.Class.getDeclaringClass0(Native Method) [rt.jar:1.7.0_45]
      at java.lang.Class.getDeclaringClass(Class.java:1101) [rt.jar:1.7.0_45]
      at java.lang.Class.getEnclosingClass(Class.java:1137) [rt.jar:1.7.0_45]
      at sun.reflect.generics.scope.ClassScope.computeEnclosingScope(ClassScope.java:62) [rt.jar:1.7.0_45]
      at sun.reflect.generics.scope.AbstractScope.getEnclosingScope(AbstractScope.java:74) [rt.jar:1.7.0_45]
      at sun.reflect.generics.scope.AbstractScope.lookup(AbstractScope.java:90) [rt.jar:1.7.0_45]
      at sun.reflect.generics.factory.CoreReflectionFactory.findTypeVariable(CoreReflectionFactory.java:110) [rt.jar:1.7.0_45]
      at sun.reflect.generics.visitor.Reifier.visitTypeVariableSignature(Reifier.java:165) [rt.jar:1.7.0_45]
      at sun.reflect.generics.tree.TypeVariableSignature.accept(TypeVariableSignature.java:43) [rt.jar:1.7.0_45]
      at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) [rt.jar:1.7.0_45]
      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) [rt.jar:1.7.0_45]
      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.7.0_45]
      at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:85) [rt.jar:1.7.0_45]
      at java.lang.reflect.Field.getGenericType(Field.java:237) [rt.jar:1.7.0_45]
      at org.jboss.weld.introspector.jlr.WeldFieldImpl.of(WeldFieldImpl.java:52)
      at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:161)
      at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:126)
      at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.load(ClassTransformer.java:60)
      at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.load(ClassTransformer.java:51)
      at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
      at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
      at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
      at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
      at com.google.common.cache.LocalCache.get(LocalCache.java:3990)
      at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994)
      at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878)
      at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:71)
      at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:112)
      at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:93)
      at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:164)
      ... 26 more

      18:37:15,920 ERROR [org.jboss.as.server] (HttpManagementService-threads - 3) JBAS015870: Deploy of deployment "drg-lite-core-0.1-SNAPSHOT.war" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"drg-lite-core-0.1-SNAPSHOT.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"drg-lite-core-0.1-SNAPSHOT.war\".WeldStartService: Failed to start service
      Caused by: org.jboss.weld.exceptions.WeldException: WELD-000830 Unable to load the cache value for the key class com.google.common.collect.HashBiMap$EntrySet$1
      Caused by: com.google.common.util.concurrent.UncheckedExecutionException: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class com.google.common.collect.HashBiMap$Itr
      Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class com.google.common.collect.HashBiMap$Itr
      Caused by: java.lang.IncompatibleClassChangeError: com.google.common.collect.HashBiMap and com.google.common.collect.HashBiMap$Itr disagree on InnerClasses attribute"}}
      18:37:15,926 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016009: Stopping weld service for deployment drg-lite-core-0.1-SNAPSHOT.war

              kverlaen@redhat.com Kris Verlaenen
              rpasquini Riccardo Pasquini (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: