title: 404 page not found despite correct config
body: <p>I have a simple web application that runs on Tomcat.
  The first page opened after I run the app from IntelliJ is the page from index.html
  There user click on button and is redirected to dashboard page. It looks like this in index.html: <br></p>
  
  <pre><code>&lt;a href="dashboard"&gt; &lt;button id="enter" type="button"&gt; ENTER &lt;/button&gt; &lt;/a&gt;
  </code></pre>
  
  <p>I have a servlet:</p>
  
  <pre><code>@WebServlet("/dashboard")
  public class DashboardServlet extends HttpServlet {
  
      @Override
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          RequestDispatcher rd = request.getRequestDispatcher("html/dashboard.html");
          rd.forward(request, response);
      }
  }
  </code></pre>
  
  <p>And I have dashboard.html file located in web/html/dashboard.html</p>
  
  <p><br><br></p>
  
  <p>After user clicks on button on first page, he is redirected to the next page (the dashboard page) but I see only 404 instead of page.</p>
  
  <p><br></p>
  
  <p>I cannot find what is wrong here. To solve the problem I added this to my web.xml:</p>
  
  <pre><code>&lt;servlet&gt;
          &lt;servlet-name&gt;DashboardServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;airport.flight.control.servlet.DashboardServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;DashboardServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/dashboard&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>It gave me is error message from Tomcat when I opened the problematic dashboard page again:</p>
  
  <pre><code>java.lang.ClassNotFoundException: airport.flight.control.servlet.DashboardServlet
  </code></pre>
  
  <p>I find this exception very weird, because this is the reference to class that I've just copied...</p>