1 Reply Latest reply on Mar 11, 2013 2:37 AM by nickarls

    SubDeployments in JBOSS

    charlie7

      Can a WAR be included as a subdeployment in a jboss deployment structure of another web-app?

       

      If yes, what should be the cause of the below exception?

       

      16:48:30,337 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."Base-portlet.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."BaseControlCenterWeb-portlet.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "BaseControlCenterWeb-portlet.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Sub deployment TestSubModule-portlet.war in jboss-structure.xml was not found. Available sub deployments:

          at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.subDeploymentNotFound(DeploymentStructureDescriptorParser.java:231) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

          at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:158) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

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

          ... 5 more

       

      Note : Base-portlet and TestSubModule-portlet are Liferay projects.

        • 1. Re: SubDeployments in JBOSS
          nickarls

          I don't think so. The EAR/WAR architechture is bound by the EE spec and the physical structure of the archive. jboss-deployment-structure.xml is for fine-tuning e.g. classloading in the already present structure