title: .EAR deploying order wildfly-8.0.0Final
body: <p>We are having dependencies problem when we try to deploy our .EAR file (wildfly-8.0.0Final).
  Below you can find details of the structure of the .EAR, application.xml &amp; standalone.xml files.</p>
  
  <p>Despite setting <strong>initialize-in-order</strong> to TRUE it doesn't seem to follow the order, causing the dependencies problem. We have tried with <strong>ear-subdeployments-isolated</strong> set to both true and false.</p>
  
  <p>Any ideas on how to control the order or any other suggestions?</p>
  
  <p>We found some posts (i.e. using strict) but looks like it was for older versions (JBOSS 4.0). </p>
  
  <p>THANKS MILLION FOR THE HELP!</p>
  
  <p>+mmm-app.ear<br> 
        |------------ lib (commons-lib)<br>
        |------------ infraestrutura-core.jar (ejb)<br>
        |------------ mmm-logistica.jar (ejb)<br>
        |------------ mmm-admin-core.jar (ejb)<br>
        |------------ mmm-financeiro-core.jar (ejb)<br>
        |------------ mmm-mobile-core.jar (ejb)<br>
        |------------ file1.war<br>
        |------------- file2.war<br>
        |-------------- file3.war<br>
        |--------------- file4.war<br></p>
  
  <p>application.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;application xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="7" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/application_7.xsd"&gt;
  &lt;initialize-in-order&gt;true&lt;/initialize-in-order&gt;
  
  &lt;display-name&gt;mmm-package-app&lt;/display-name&gt;
  
  &lt;!--A ordem correta de deployment deve ser a desse arquivo, mas com o attributo true ou false não funciona --&gt;
  
  &lt;description&gt;The MMM Deployment Application&lt;/description&gt;
  
  &lt;module&gt;
      &lt;ejb&gt;infraestrutura-core-1.0-SNAPSHOT.jar&lt;/ejb&gt;
  &lt;/module&gt;
  
  &lt;module&gt;
      &lt;ejb&gt;mmm-logistica-core-1.0-SNAPSHOT.jar&lt;/ejb&gt;
  &lt;/module&gt;
  
  &lt;module&gt;
      &lt;ejb&gt;mmm-financeiro-core-1.0-SNAPSHOT.jar&lt;/ejb&gt;
  &lt;/module&gt;
  
  &lt;module&gt;
      &lt;ejb&gt;mmm-admin-core-1.0-SNAPSHOT.jar&lt;/ejb&gt;
  &lt;/module&gt;
  
  
  &lt;module&gt;
      &lt;ejb&gt;mmm-mobile-core-1.0-SNAPSHOT.jar&lt;/ejb&gt;
  &lt;/module&gt;
  
  
  &lt;module&gt;
      &lt;web&gt;
          &lt;web-uri&gt;mmm-admin-client-1.0-SNAPSHOT.war&lt;/web-uri&gt;
          &lt;context-root&gt;/admin&lt;/context-root&gt;
      &lt;/web&gt;
  &lt;/module&gt;
  
  
   &lt;module&gt;
      &lt;web&gt;
          &lt;web-uri&gt;mmm-site-client-1.0-SNAPSHOT.war&lt;/web-uri&gt;
          &lt;context-root&gt;/beta&lt;/context-root&gt;
      &lt;/web&gt;
  &lt;/module&gt;
  
  
  &lt;module&gt;
      &lt;web&gt;
          &lt;web-uri&gt;mmm-mobile-server-1.0-SNAPSHOT.war&lt;/web-uri&gt;
          &lt;context-root&gt;/mobile&lt;/context-root&gt;
      &lt;/web&gt;
  &lt;/module&gt;
  
  
  
  &lt;module&gt;
      &lt;web&gt;
          &lt;web-uri&gt;mmm-lp-client-1.0-SNAPSHOT.war&lt;/web-uri&gt;
          &lt;context-root&gt;/&lt;/context-root&gt;
      &lt;/web&gt;
  &lt;/module&gt;
  
  &lt;library-directory&gt;lib&lt;/library-directory&gt;
  </code></pre>
  
  <p></p>
  
  <p>standalone.xml</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:ee:2.0"&gt;
  &lt;ear-subdeployments-isolated&gt;FALSE&lt;/ear-subdeployments-isolated&gt;
  &lt;spec-descriptor-property-replacement&gt;true&lt;/spec-descriptor-property-replacement&gt;
  &lt;jboss-descriptor-property-replacement&gt;true&lt;/jboss-descriptor-property-replacement&gt;
  &lt;annotation-property-replacement&gt;false&lt;/annotation-property-replacement&gt;
  &lt;concurrent&gt;
  </code></pre>
  
  <p>jboss-deployment-structure.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jboss-deployment-structure&gt;
   &lt;ear-subdeployments-isolated&gt;true&lt;/ear-subdeployments-isolated&gt;
   &lt;deployment&gt;
    &lt;dependencies&gt;
     &lt;module name="deployment.MMM-app-1.0-SNAPSHOT.ear" /&gt;
    &lt;/dependencies&gt;
   &lt;/deployment&gt;
   &lt;sub-deployment name="MMM-admin-client-1.0-SNAPSHOT.war"&gt;
    &lt;dependencies&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.infraestrutura-core-1.0-SNAPSHOT.jar" /&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-logistica-core-1.0-SNAPSHOT.jar" /&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-financeiro-core-1.0-SNAPSHOT.jar" /&gt;
    &lt;/dependencies&gt;
   &lt;/sub-deployment&gt;
   &lt;sub-deployment name="MMM-site-client-1.0-SNAPSHOT.war"&gt;
    &lt;dependencies&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.infraestrutura-core-1.0-SNAPSHOT.jar" /&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-logistica-core-1.0-SNAPSHOT.jar" /&gt;
    &lt;/dependencies&gt;
   &lt;/sub-deployment&gt;
   &lt;sub-deployment name="MMM-mobile-server-1.0-SNAPSHOT.war"&gt;
    &lt;dependencies&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.infraestrutura-core-1.0-SNAPSHOT.jar" /&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-mobile-core-1.0-SNAPSHOT.jar" /&gt;
    &lt;/dependencies&gt;
   &lt;/sub-deployment&gt;
   &lt;sub-deployment name="MMM-lp-client-1.0-SNAPSHOT.war"&gt;
    &lt;dependencies&gt;
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.infraestrutura-core-1.0-SNAPSHOT.jar" /&gt;
  
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-logistica-core-1.0-SNAPSHOT.jar" /&gt;
  
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-admin-core-1.0-SNAPSHOT.jar" /&gt;
  
     &lt;module
      name="deployment.MMM-app-1.0-SNAPSHOT.ear.MMM-lp-core-1.0-SNAPSHOT.jar" /&gt;
    &lt;/dependencies&gt;
   &lt;/sub-deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>