10 Replies Latest reply on Aug 7, 2013 12:07 PM by ctomc

    Redeploy causes errors in deployments that depends on it.

    diesel_den

      I have three modules: core.jar, backaend.jar and front.war. backaned.jar and front.war uses core.jar as dependency in META-INF/MANIFEST.MF: deployment.core.jar (JBoss AS 7 feature - deployments availability via "deployment." prefix).

      All works well when I deploy firstly core and then backend and front.

      But when I redeploy core, JBoss automatically tries to reinitialize backend and front, that produces next errors:

       

      10:48:26,007 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "e-front_core-0.0.1-SNAPSHOT.jar"

      10:48:26,011 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."backend.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."backend.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "backend.jar"

          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(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

      Caused by: java.lang.NullPointerException

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

          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

       

      10:48:26,049 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."front.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."front.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "front.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(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

      Caused by: java.lang.IllegalArgumentException: JBAS011084: moduleDescription is null

          at org.jboss.as.ee.component.ComponentDescription.<init>(ComponentDescription.java:146)

          at org.jboss.as.web.deployment.component.WebComponentDescription.<init>(WebComponentDescription.java:37)

          at org.jboss.as.web.deployment.jsf.JsfManagedBeanProcessor.installManagedBeanComponent(JsfManagedBeanProcessor.java:251)

          at org.jboss.as.web.deployment.jsf.JsfManagedBeanProcessor.deploy(JsfManagedBeanProcessor.java:116)

          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

       

      10:48:26,246 INFO  [org.jboss.as.server] (management-handler-thread - 28) JBAS018562: Redeployed "core.jar"

      10:48:26,247 INFO  [org.jboss.as.server] (management-handler-thread - 28) JBAS018565: Replaced deployment "e-front_core-0.0.1-SNAPSHOT.jar" with deployment "core.jar"

      10:48:26,248 INFO  [org.jboss.as.controller] (management-handler-thread - 28) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."e-front-backend.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."backend.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "backend.jar"

            service jboss.deployment.unit."e-front.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."front.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "front.war"

       

      If to be short, here are "IllegalArgumentException: JBAS011084: moduleDescription is null" for front.war and "NullPointerException at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:43)" for backend.jar.

       

      As for NullPointerException I don't have any ideas, but "moduleDescription is null" looks like I have not specified some description for front.war deployment. Probably now in AS 7 for deployed wars we need to provide some module description?