4 Replies Latest reply on Oct 17, 2017 2:58 AM by Nicolas Maujean

    JBoss error MSC00001: Failed to start service jboss.deployment.unit, what does it mean ? java.lang.ClassNotFoundException

    Nicolas Maujean Newbie

      hi,

       

         I have the following error in JBoss and don't know for what reason we have it and what does it mean, anyone can help ? :

       

      01:34:20,180 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."bpm.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpm.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "bpm.war"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            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(Unknown Source) [rt.jar:1.7.0_80]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80]

            at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80]

      Caused by: java.lang.RuntimeException: Error getting reflective information for class com.hds.web.bpm.processserver.TaskProcessServlet with ClassLoader ModuleClassLoader for Module "deployment.bpm.war:main" from Service Module Loader

            at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            ... 5 more

      Caused by: java.lang.NoClassDefFoundError: Lcom/hds/web/bpm/taskserver/LocalTaskServiceDelegator;

            at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_80]

            at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0_80]

            at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0_80]

            at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            ... 10 more

      Caused by: java.lang.ClassNotFoundException: com.hds.web.bpm.taskserver.LocalTaskServiceDelegator from [Module "deployment.bpm.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)

            ... 15 more

       

      01:34:20,222 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "bpm.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"bpm.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"bpm.war\".POST_MODULE:Failed to process phase POST_MODULE of deployment \"bpm.war\""}}

      01:34:20,226 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."bpm.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpm.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "bpm.war"

       

      01:34:20,230 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.\"bpm.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"bpm.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"bpm.war\""}}}}

      01:34:20,252 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment bpm.war in 19ms

      01:34:21,278 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "bpm.war"

      01:34:21,473 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

        • 1. Re: JBoss error MSC00001: Failed to start service jboss.deployment.unit, what does it mean ? java.lang.ClassNotFoundException
          Frank Langelage Master

          Caused by: java.lang.ClassNotFoundException: com.hds.web.bpm.taskserver.LocalTaskServiceDelegator from [Module "deployment.bpm.war:main" from Service Module Loader]

          So your deployment unit is missing this class. It's not part of your bpm.war and is not found in one of the accessible modules.

          • 2. Re: JBoss error MSC00001: Failed to start service jboss.deployment.unit, what does it mean ? java.lang.ClassNotFoundException
            Nicolas Maujean Newbie

            The class TaskServiceDelegator exists and is deployed in JBoss,

             

            I have also the following error message and EnvironmentProvider is deployed and present in the repository deployed in JBoss :

            12:12:51,702 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."bpm.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."bpm.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "bpm.war"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            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(Unknown Source) [rt.jar:1.7.0_80]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80]

            at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80]

            Caused by: java.lang.RuntimeException: Error getting reflective information for class com.hds.hub.api.processes.impl.WFManagerImpl with ClassLoader ModuleClassLoader for Module "deployment.bpm.war:main" from Service Module Loader

            at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)

            at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            ... 5 more

            Caused by: java.lang.NoClassDefFoundError: Lcom/hds/web/bpm/sessions/EnvironmentProvider;

            at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_80]

            at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0_80]

            at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0_80]

            at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            ... 10 more

            Caused by: java.lang.ClassNotFoundException: com.hds.web.bpm.sessions.EnvironmentProvider from [Module "deployment.bpm.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)

            ... 15 more

             

             

            12:12:51,736 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "bpm.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"bpm.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"bpm.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"bpm.war\""}}

            12:12:51,752 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment bpm.war in 14ms

            • 3. Re: JBoss error MSC00001: Failed to start service jboss.deployment.unit, what does it mean ? java.lang.ClassNotFoundException
              Frank Langelage Master

              Are you sure that the classes are there? JBoss says something different.

              How does your deployment unit look alike?

              Are the missing classes com.hds.web.bpm.sessions.EnvironmentProvider and com.hds.web.bpm.taskserver.LocalTaskServiceDelegator inside WEB-INF/classes?

              Or do you have jar files inside WEB-INF/lib?

              • 4. Re: JBoss error MSC00001: Failed to start service jboss.deployment.unit, what does it mean ? java.lang.ClassNotFoundException
                Nicolas Maujean Newbie

                yes I am sure,

                 

                yes they are inside WEB-INF/Classes

                 

                no I don't have a jar file, here is a screen copy where we can see EnvironmentProvider