title: JBoss REST WS application doesn't work when deployed as WAR file but works when expanded to a folder
body: <p>I am deploying an application on JBoss server (EAP-6.4.0, JBoss Web/7.5.7.Final-redhat-1).</p>
  
  <p>I get a very strange behavior. Let's say the application is called <code>Engine.war</code>. The application implements a REST Web service server.</p>
  
  <ol>
  <li><p>When I deploy the application by <strong>copying</strong> the <code>WAR</code> file to <code>c:\EAP-6.4.0\standalone\deployments\Engine.war</code> <strong>file</strong>, it is successfully deployed, but <em>doesn't work</em>. </p></li>
  <li><p>When I deploy it by <strong>unpacking</strong>/extracting/exploding the content of the <code>WAR</code> file to <code>c:\EAP-6.4.0\standalone\deployments\Engine.war</code> <strong>folder</strong> and creating the <code>Engine.war.dodeploy</code> file, it is also deployed, but <em>does</em> work.</p></li>
  </ol>
  
  <p>By <em>doesn't work</em> I mean that the server is complaining that</p>
  
  <pre><code>JBWEB000065: HTTP Status 404 -
  JBWEB000124: The requested resource is not available.
  JBoss Web/7.5.7.Final-redhat-1
  </code></pre>
  
  <p>so the same behavior like if you misspell the URI.</p>
  
  <p>All the web resources I have found state that <em><a href="https://developer.jboss.org/wiki/ExplodedDeployment" rel="nofollow">these two deployment methods are just equivalent alternatives</a></em>, and for our other applications we do not observe any differences!</p>
  
  <p><strong>Can you see any reason why in just this case it is matters if I unpack the <code>WAR</code> file or not?</strong></p>