1 Reply Latest reply on Dec 17, 2018 5:08 AM by tommiboss

    need jboss-deployment-structure.xml example code !

    aupres

      My development environ is jboss 7.0.2 and eclipse indigo. My deployment directory archit. is like below :

       

      standalone

              |
              |---deployments
                             |
                             |---EJBHelloWorldWeb.war
                             |
                             |--- EJBHelloWorld.jar

       

      To link war and jar folders I made jboss-deployment-structure.xml in META-INF folder of EJBHelloWorldWeb.war

      Below codes are example I made. But parse is definetly failed!

       

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
         

        <ear-subdeployments-isolated>true</ear-subdeployments-isolated>
         
        <deployment>
          <dependencies>
            <module name="EJBHelloWorld.jar">
              <imports>
                <include-set>
                  <path name="EJBHelloWorld.jar" value="." />
                </include-set>
              </imports>
              <resources>
                <resource-root path="EJBHelloWorld.jar" />
              </resources>
            </module>
          </dependencies>
        </deployment>

      </jboss-deployment-structure>

       

      I can hardly find example code of jboss-deployment-structure.xml even in google.com

      Kindly inform me of your advice. Thanks in advance and Merry Christmas!

        • 1. Re: need jboss-deployment-structure.xml example code !
          tommiboss

          my parser fails too. Mine reports this: Unexpected content of type 'element start', name is 'deployments', text is: 'null'

          on a deployment element being as follows:

           

          <deployments>

              <deployment name="oambackend.jar">

                  <dependencies>

                      <module name="uk.co.westhawk.snmp" />

                      <module name="org.apache.shiro" slot="main" meta-inf="export" />

                  </dependencies>

              </deployment>

               .

               .

               .

          </deployments>

           

          could you kindly help me? Thanks a lot.