5 Replies Latest reply on Jun 8, 2016 1:39 AM by Nicklas Karlsson

    WeldStartService: org.jboss.msc.service.StartException in service

    jon contact Newbie

      Hi ,

       

      I am trying to deploy a war file to JBOSS EAP 6.3, basically we are trying to migrate this app from Seam to CDI. We I try to deploy , This project is built using Ant

       

      I keep getting this error  during deployment:

       

      11:26:17,437 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."ApplicationXXX.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."ApplicationXXX.war".WeldStartService: Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1936) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_74]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_74]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_74]

      Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.InternalError: Enclosing method not found

              at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2256)

              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:49)

              at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:73)

              at org.jboss.weld.resources.ClassTransformer.getWeldClass(ClassTransformer.java:188)

              at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:151)

              at org.jboss.weld.bootstrap.BeanDeployer.loadWeldClass(BeanDeployer.java:118)

              at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:81)

              at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:137)

              at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184)

              at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:63)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

              ... 3 more

      Caused by: java.lang.InternalError: Enclosing method not found

       

      below is the beans.xml both inside web-inf and also web-inf/classes/meta-inf

       

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

      <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"

             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"

             version="1.1" bean-discovery-mode="all">

          <scan>

              <exclude name="org.jboss.weld.**" />

          </scan>

           <interceptors>

             <class>org.apache.deltaspike.security.impl.extension.SecurityInterceptor</class>

               <class>org.apache.deltaspike.jpa.impl.transaction.TransactionalInterceptor</class>

         </interceptors>

      </beans>

       

      Please let me know if you have any idea how to fix this error, I already have spent two three days on this issue

       

      thanks in advance