title: HTTP Status 404 when packaging WAR in EAR file
body: <p>I'm using JBoss AS 7.1.1.Final and have been having problems getting my deployment to work.  I have a couple of EJB jar files and a WAR file that I'm packaging into a single EAR.  If I deploy the WAR file separately, I'm able to access it by the context-root specified in the jboss-web.xml file. However, when I package it up into an EAR file, I keep getting a "HTTP Status 404 - /pacbridge-web/" error for the same URL.</p>
  
  <p>Here is what I have</p>
  
  <pre><code>EAR File:
  |---pacbridge-app-6.0.0.jar
  |---pacbridge-dom-6.0.0.jar
  |---pacbridge-ejb-6.0.0.jar
  |---pacbridge-web-6.0.0.war
  |---META-INF
      |---application.xml
      |---MANIFEST.MF
  |---lib
      |----bunch of jar files
  </code></pre>
  
  <p>My application.xml looks like this:</p>
  
  <pre><code>&lt;application ...&gt;
    &lt;display-name&gt;pacbridge-ear&lt;/display-name&gt;
    &lt;module&gt;
      &lt;web&gt;
        &lt;web-uri&gt;pacbridge-web-6.0.0.war&lt;/web-uri&gt;
        &lt;context-root&gt;/pacbridge-web&lt;/context-root&gt;
      &lt;/web&gt;
    &lt;/module&gt;
    &lt;module&gt;
      &lt;ejb&gt;pacbridge-ejb-6.0.0.jar&lt;/ejb&gt;
    &lt;/module&gt;
    &lt;module&gt;
      &lt;ejb&gt;pacbridge-app-6.0.0.jar&lt;/ejb&gt;
    &lt;/module&gt;
    &lt;module&gt;
      &lt;ejb&gt;pacbridge-dom-6.0.0.jar&lt;/ejb&gt;
    &lt;/module&gt;
    &lt;library-directory&gt;lib&lt;/library-directory&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>I'm not sure that it's applicable but there is my jboss-web.xml file:</p>
  
  <pre><code>&lt;jboss-web&gt;
      &lt;context-root&gt;pacbridge-web&lt;/context-root&gt;
  &lt;/jboss-web&gt;
  </code></pre>
  
  <p>Could someone give me some hints as to what I might be doing wrong? </p>
  
  <p>Thanks</p>