Redeploying deployment that has a dependent throws IllegalStateException in JBoss EAP 6.2
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.2
Issue
- Redeploying deployment that has a dependent throws IllegalStateException in JBoss EAP 6.2, we are using
jboss-all.xmlto have app.ear depend on bapp.ear. When we redeploy bapp.ear, we see theIllegalStateExceptionas shown below:
<jboss umlns="urn:jboss:1.0">
<jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">
<dependency name="bapp.ear" />
</jboss-deployment-dependencies>
</jboss>
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11) MSC000001: Failed to start service jboss.deployment.unit."app.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."app.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "app.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.3.4.Final-redhat-1.jar:7.3.4.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: java.lang.IllegalStateException
at org.jboss.as.webservices.util.ASHelper.getRequiredAttachment(ASHelper.java:173)
at org.jboss.as.webservices.deployers.WSIntegrationProcessorJAXWS_EJB.processAnnotation(WSIntegrationProcessorJAXWS_EJB.java:85)
at org.jboss.as.webservices.deployers.WSIntegrationProcessorJAXWS_EJB.deploy(WSIntegrationProcessorJAXWS_EJB.java:73)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.3.4.Final-redhat-1.jar:7.3.4.Final-redhat-1]
... 5 more
Resolution
Update to the current JBoss EAP 6.4 and apply the cumulative patch release
Workaround for versions prior to JBoss EAP 6.3 is redeploy the dependent applications when redeploying the dependency.
Root Cause
This content is not included.bz-924562 - Deployment restart caused by dependency replacement does not work
Content from issues.jboss.org is not included.WFLY-975 - Deployment replace causes invalid state in DUP
SBR
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.