title: WebSphere Application Server 8 : Error 404: java.io.FileNotFoundException: SRVE0190E: File not found:
body: <p>I want to deploy an application in WAS8.5.5.2. I have made the ear with the structure : </p>
  
  <p>serverEar.ear<br>
   -- serverWar.war<br>
       ---- WEB-INF<br>
      ---- 'web' directory contents</p>
  
  <p>I have <strong>application.xml :</strong></p>
  
  <pre><code> &lt;application version="6" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" &gt;
      &lt;module&gt;
          &lt;web&gt;
              &lt;web-uri&gt; serverWar.war&lt;/web-uri&gt;
              &lt;context-root&gt;serverWar&lt;/context-root&gt;
          &lt;/web&gt;
      &lt;/module&gt;
  
      &lt;library-directory&gt; web/lib&lt;/library-directory&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p><strong>web.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
           version="3.1"&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;p1&lt;/servlet-name&gt;
          &lt;servlet-class&gt;com.test.Server&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;p1&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/server&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;security-constraint&gt;
          &lt;display-name/&gt;
          &lt;web-resource-collection&gt;
              &lt;web-resource-name/&gt;
              &lt;description/&gt;
              &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
              &lt;http-method&gt;POST&lt;/http-method&gt;
              &lt;http-method&gt;GET&lt;/http-method&gt;
          &lt;/web-resource-collection&gt;
          &lt;user-data-constraint&gt;
              &lt;description/&gt;
              &lt;transport-guarantee&gt;CONFIDENTIAL&lt;/transport-guarantee&gt;
          &lt;/user-data-constraint&gt;
      &lt;/security-constraint&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I have the directory structure : </p>
  
  <p><a href="https://i.stack.imgur.com/bC8v4.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/bC8v4.jpg" alt="enter image description here"></a></p>
  
  <p>I have installed the application from WAS ibm/console. The installation directory is <code>..\Desktop\Test\out\artifacts\serverEar</code> where my ear file is placed (Not sure if the installation directory affects this?).</p>
  
  <p>Application has been installed successfully and is started.</p>
  
  <p>I have tried the url : <a href="https://my_server:9443/serverWar/server" rel="noreferrer">https://my_server:9443/serverWar/server</a> and it gives me : <code>Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /server</code></p>
  
  <p>I have never handled WAS before and am not sure where I might be going wrong. </p>
  
  <p>Any suggestions, pointers are highly appreciated!</p>