3 Replies Latest reply on Jul 17, 2012 9:11 AM by jaikiran pai

    War packaged inside a Sar fails to deploy

    Sohil Shah Newbie

      I have a sar file which contains a war file. The sar file deploys just fine. However, even after specifying the sub-deployment value I am getting the following error message:

       

      org.jboss.as.server.deployment.DeploymentUnitProcessingException: Sub deployment o.war in jboss-structure.xml was not found.

       

      Here is the overall structure of my sar file:

       

      openmobster.sar

                       | 3rd party jar files needed by the service

                       | o.war

       

      Here is my jboss-deployment-structure.xml

       

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

      <jboss-deployment-structure>

        <deployment>

           <dependencies>

             <module name="org.dom4j" />

             <module name="org.apache.commons.collections"/>

           </dependencies>

           <resources>

               <resource-root path="openmobster-sar-2.2-M8.jar">

               </resource-root>

            </resources>

        </deployment>

         <!-- war deployment -->

        <sub-deployment name="o.war">

        </sub-deployment>

      </jboss-deployment-structure>

       

      You help with this will be greatly appreciated

       

      Thanks

      Sohil