title: 404 error, server not found when using right click on index.html then Run
body: <p>I am having issue with my Tomcat Server in IntelliJ. My program will run when Tomcat is selected in the configurations on the top right of the program. For some reason my professor wants us to be able to right click on the index.html page and select run. When I do it that way I get a 404 error:</p>
  
  <p>Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p>
  
  <p>I am not sure what is wrong with my set up. I transfered my program to my friends configuration and it had the same issue. I also transferred her project, that did not have this issue on her machine, to mine. Her program had the same issue when running on my set up.</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/userEmailList.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Join our email list&lt;/h1&gt;
  &lt;p&gt;Please click any button below to perform the desired action &lt;/p&gt;
  
  &lt;a href ="delete.jsp"&gt;&lt;input type="button" value = "DELETE"&gt;&lt;/a&gt;
  &lt;a href ="insert.jsp"&gt;&lt;input type="button" value = "INSERT"&gt;&lt;/a&gt;
  &lt;a href ="update.jsp"&gt;&lt;input type="button" value = "UPDATE"&gt;&lt;/a&gt;
  
  &lt;form action="emailList" method="post"&gt;
  
      &lt;h1&gt;Click the button below to view all records &lt;/h1&gt;
      &lt;input type="hidden" name="action" value="select_records"&gt;
      &lt;input type="submit" name="action" value="SELECT RECORDS"&gt;
  
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>servlet</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_4_0.xsd"
           version="4.0"&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;EmailListServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;EmailListServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;EmailListServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/emailList&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I should be able to run the program both way. But the right click on index.html -> Run does not work</p>