1 Reply Latest reply on Sep 12, 2012 11:25 AM by Jason Porter

    Error on deploy Seam 3 example eap51-weld-jsf-webapp

    Jose Alvarez de Lara Novice

      I am trying to deploy eap51-weld-jsf-webapp on JBoss AS 7.1.1.Final on Ubuntu 12.04 and JEE7 as default.

      And I do not know if is the server version or the Java version but I get the following error,

       

      23:02:36,007 WARN  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016006: Could not load portable extension class org.jboss.weld.extensions.interceptor.InterceptorExtension: java.lang.ClassNotFoundException: org.jboss.weld.extensions.interceptor.InterceptorExtension from [Module "deployment.eap51-weld-jsf-webapp.war:main" from Service Module Loader]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
          at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadExtension(WeldPortableExtensionProcessor.java:114) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
          at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:100) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
          at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:86) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
      
      23:02:36,296 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: eap51-weld-jsf-webapp.war
      23:02:36,389 INFO  [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900 1.1.5 (AS71)
      23:02:36,436 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016008: Starting weld service for deployment eap51-weld-jsf-webapp.war
      23:02:36,752 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."eap51-weld-jsf-webapp.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."eap51-weld-jsf-webapp.war".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: applicationPackage.transaction.TransactionInterceptor from [Module "deployment.eap51-weld-jsf-webapp.war:main" from Service Module Loader]; location: <class>applicationPackage.transaction.TransactionInterceptor</class> in vfs:/home/jose/servers/jboss/jboss-as-7.1.1.Final/standalone/deployments/eap51-weld-jsf-webapp.war/WEB-INF/beans.xml@9
          at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
      Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: applicationPackage.transaction.TransactionInterceptor from [Module "deployment.eap51-weld-jsf-webapp.war:main" from Service Module Loader]; location: <class>applicationPackage.transaction.TransactionInterceptor</class> in vfs:/home/jose/servers/jboss/jboss-as-7.1.1.Final/standalone/deployments/eap51-weld-jsf-webapp.war/WEB-INF/beans.xml@9
          at org.jboss.weld.manager.Enabled$ClassLoader.apply(Enabled.java:65)
          at org.jboss.weld.manager.Enabled$ClassLoader.apply(Enabled.java:52)
          at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451)
          at java.util.AbstractList$Itr.next(AbstractList.java:358) [rt.jar:1.7.0_03]
          at org.jboss.weld.manager.Enabled.createMetadataMap(Enabled.java:121)
          at org.jboss.weld.manager.Enabled.<init>(Enabled.java:96)
          at org.jboss.weld.manager.Enabled.of(Enabled.java:79)
          at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:101)
          at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:175)
          at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:150)
          at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:270)
          at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
          at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
          ... 5 more
      Caused by: java.lang.ClassNotFoundException: applicationPackage.transaction.TransactionInterceptor from [Module "deployment.eap51-weld-jsf-webapp.war:main" from Service Module Loader]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
          at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68)
          at org.jboss.weld.manager.Enabled$ClassLoader.apply(Enabled.java:63)
          ... 17 more
      
      23:02:36,980 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "eap51-weld-jsf-webapp.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"eap51-weld-jsf-webapp.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"eap51-weld-jsf-webapp.war\".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: applicationPackage.transaction.TransactionInterceptor from [Module \"deployment.eap51-weld-jsf-webapp.war:main\" from Service Module Loader]; location: <class>applicationPackage.transaction.TransactionInterceptor</class> in vfs:/home/jose/servers/jboss/jboss-as-7.1.1.Final/standalone/deployments/eap51-weld-jsf-webapp.war/WEB-INF/beans.xml@9"}}
      23:02:37,019 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment eap51-weld-jsf-webapp.war in 38ms
      23:02:37,021 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."eap51-weld-jsf-webapp.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."eap51-weld-jsf-webapp.war".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: applicationPackage.transaction.TransactionInterceptor from [Module "deployment.eap51-weld-jsf-webapp.war:main" from Service Module Loader]; location: <class>applicationPackage.transaction.TransactionInterceptor</class> in vfs:/home/jose/servers/jboss/jboss-as-7.1.1.Final/standalone/deployments/eap51-weld-jsf-webapp.war/WEB-INF/beans.xml@9
      
      23:02:37,026 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"eap51-weld-jsf-webapp.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"eap51-weld-jsf-webapp.war\".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: applicationPackage.transaction.TransactionInterceptor from [Module \"deployment.eap51-weld-jsf-webapp.war:main\" from Service Module Loader]; location: <class>applicationPackage.transaction.TransactionInterceptor</class> in vfs:/home/jose/servers/jboss/jboss-as-7.1.1.Final/standalone/deployments/eap51-weld-jsf-webapp.war/WEB-INF/beans.xml@9"}}}}
      

       

      Here is the beans.xml file,

       

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="
            http://java.sun.com/xml/ns/javaee 
            http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
         <alternatives/>
         <decorators/>
         <interceptors>
            <class>applicationPackage.transaction.TransactionInterceptor</class>
         </interceptors>
      </beans>
      

       

      which declares the interceptor.

       

      I do not know which is the problem.

       

      Regards,

      Jose