4 Replies Latest reply on Apr 21, 2016 1:34 PM by Mashama McFarlane

    Problems upgrading Java EE7 app from ISPN 7.2.3 to 8.2.1 on WildFly 10

    Mashama McFarlane Novice

      My Java EE7 application was running on WildFly 10 with Infinispan 7.2.3.  Are deploying the Infinispan module system overlay for 8.2.1 and updating all the jboss-deployment-structure.xml files to use slot ispn-8.2 instead of ispn-7.2 I am getting the following error when starting the application:

       

      10:26:44,318 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."moxility-faces.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."moxility-faces.war".WeldStartService: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:744)
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000123: Error loading org.infinispan.jcache.annotation.InjectedCacheResultInterceptor defined in <class>org.infinispan.jcache.annotation.InjectedCacheResultInterceptor</class> in vfs:/Users/mashama/Downloads/wildfly-10.0.0.Final/standalone/deployments/moxility-faces.war/WEB-INF/lib/moxility-core-1.0.0-SNAPSHOT.jar/META-INF/beans.xml@7
        at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder$ClassLoader.apply(GlobalEnablementBuilder.java:315)
        at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder$ClassLoader.apply(GlobalEnablementBuilder.java:302)
        at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617)
        at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
        at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder.filter(GlobalEnablementBuilder.java:293)
        at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder.createModuleEnablement(GlobalEnablementBuilder.java:239)
        at org.jboss.weld.bootstrap.BeanDeployment.createEnablement(BeanDeployment.java:213)
        at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:390)
        at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
        at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:94)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        ... 3 more
      Caused by: java.lang.ClassNotFoundException: org.infinispan.jcache.annotation.InjectedCacheResultInterceptor from [Module "deployment.moxility-faces.war:main" from Service Module Loader]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
        at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68)
        at org.jboss.weld.bootstrap.enablement.GlobalEnablementBuilder$ClassLoader.apply(GlobalEnablementBuilder.java:313)
        ... 14 more
      

       

      Here is my jboss-deployment-structure.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
       <deployment>
        <dependencies>
        <module name="org.infinispan" slot="ispn-8.2" />
        <module name="org.modeshape.jcr.api" services="import" />
        <module name="org.modeshape" services="import" />
      
        </dependencies>
       </deployment>
      </jboss-deployment-structure>
      

       

      Does anybody have any insights into what is going on and how I resolve the issue.  Remember this was an in-place upgrade of WildFly 10...