title: Deploying a webapp under ROOT - index.html not displaying
body: <p>I am using tomcat7 and have a small Java application that needs to be deployed under ROOT. The reason for this has to do with the client's inability to specify the webapp's proper context path at this time.</p>
  
  <p>I have an index.html in this webapp and my issue is that when I deploy the application under the webapp name - ${catalina_home}/mywebapp - the index.html renders without a problem when I navigate to <a href="http://localhost:8080/mywebapp" rel="nofollow noreferrer">http://localhost:8080/mywebapp</a>.</p>
  
  <p>However, when I deploy it under ROOT - ${catalina_home}/ROOT - the index.html inside does not render when I navigate to <a href="http://localhost:8080/" rel="nofollow noreferrer">http://localhost:8080/</a>. The error is 404 not found. Does this have anything to do with overriding tomcat's default page?</p>
  
  <p>My web.xml:</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;resteasy.servlet.mapping.prefix&lt;/param-name&gt;
      &lt;param-value&gt;/&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  ...
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  ...
  </code></pre>
  
  <p>Can someone explain why this is so?</p>
  
  <p>Thanks in advance.</p>
  
  <hr>
  
  <p>UPDATE: I see in this stackoverflow <a href="https://stackoverflow.com/questions/19030968/display-html-page-in-tomcat-from-maven-resteasy-webapp">Display html page in tomcat from maven RESTEasy webapp</a> that the issue may be that my filter says anything under /* should go to the servlet. I tried to set up a default servlet for .html pages, but that does not see to help yet...</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;default&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.apache.catalina.servlets.DefaultServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;default&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>