1 Reply Latest reply on Nov 22, 2013 7:43 AM by Tomaz Cerar

    Application with submodule dependency redeploy problem

    Jernej Krmelj Newbie



      I have a case where a redeployment of an application causes an exception.


      I have simple test "application" packaged in an ear (app.ear) with only one library (jar1.jar) included:





      jar1.jar includes a java interface class (org.jboss.test.jar1.EJBInterface).


      Next a have a simple separate EJB project, containing an EJB which implements EJBInterface from jar1.jar library. This project is bundled into ejb.jar and have a deployment dependency within jboss-deployment-structure.xml like this:

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




                  <module name="deployment.app.ear" />





      Deployment scenario is like this:

      1. Deployment of app.ear - successfully deployed

      2. Deployment of ejb.jar - successfully deployed

      3. Redeployment of app.ear - app is successfully redeployed, but dependent ejb redeployment fails with an exception


      This is log of this scenario:

      22-11-2013 11:30:59.002 [MSC service thr] INFO  JBAS015876: Starting deployment of "app.ear"

      22-11-2013 11:30:59.049 [DeploymentScann] INFO  JBAS018559: Deployed "app.ear"

      22-11-2013 11:31:09.063 [MSC service thr] INFO  JBAS015876: Starting deployment of "ejb.jar"

      22-11-2013 11:31:09.072 [MSC service thr] INFO  JNDI bindings for session bean named EJB in deployment unit deployment "ejb.jar" are as follows:









      22-11-2013 11:31:09.105 [DeploymentScann] INFO  JBAS018559: Deployed "ejb.jar"

      22-11-2013 11:31:44.136 [MSC service thr] INFO  JBAS015877: Stopped deployment app.ear in 6ms

      22-11-2013 11:31:44.136 [MSC service thr] INFO  JBAS015876: Starting deployment of "app.ear"

      22-11-2013 11:31:44.146 [MSC service thr] ERROR MSC00001: Failed to start service jboss.deployment.unit."ejb.jar".POST_MODULE: org.jboss.msc.service.StartExc

      eption in service jboss.deployment.unit."ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "ejb.jar"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.2.Final.jar:7.1.2.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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_33]

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

              at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_33]

      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:116) [jboss-as-server-7.1.2.Final.jar:7.1.2.Final]

              ... 5 more


      22-11-2013 11:31:44.165 [DeploymentScann] INFO  JBAS018565: Replaced deployment "app.ear" with deployment "app.ear"

      22-11-2013 11:31:44.166 [DeploymentScann] INFO  JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss

      .deployment.unit."ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "ejb.jar"


      Is this a bug in Jboss AS 7 (used version is 7.1.2) or an improper usage of EJBs?


      Sample projects are attached.