title: Why do I get an Error 404 (The requested resource is not available.) on Tomcat 7.0.70 when my HTML file is in the WebContent folder?
body: <p>I keep getting error 404 when trying to access an HTML file in my Dynamic Web Project. </p>
  
  <p>Here is my web.xml: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;NMWebServices&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;NMServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;
    com.sun.jersey.spi.container.servlet.ServletContainer
  &lt;/servlet-class&gt;
      &lt;init-param&gt;
        &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
        &lt;param-value&gt;com.nilaymodi.services&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;NMServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>my html file: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  &lt;title&gt;Inspiration Generator&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;testing&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>my java rest service class </p>
  
  <pre><code>import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  import javax.ws.rs.core.Response;
  
  @Path("/inspiration")
  public class Endpoints {
  
  @GET
  @Path("/")
  @Produces(MediaType.APPLICATION_JSON)
  public Response getInspiration() {
      Inspiration inspiration = InspirationFactory.generate();
  
      Gson gson = new Gson();
      String result = gson.toJson(inspiration, Inspiration.class);
  
      return Response.ok(result, MediaType.APPLICATION_JSON).build();
  }
  
  @GET
  @Path("/test")
  @Produces(MediaType.TEXT_PLAIN)
  public Response testConnection() {
      return Response.ok("Sucess! Service is running.", MediaType.TEXT_PLAIN).build();
      }
  }
  </code></pre>
  
  <p>which works completely fine at the url "localhost:8080/apps/inspiration/" </p>
  
  <p>my context root is "apps" and I am trying to hit the HTML file with the url 
  "localhost:8080/apps/inspiration.html" which is the url eclipse gives when I right click on the HTML file and go to run on server. I'm using Tomcat v7.0.70</p>
  
  <p>any assistance would be greatly appreciated! </p>