title: I am getting "The requested resource is not available" 404 error
body: <p>i am developing a web application,but when i am trying to run the welcome.html and click AddActor button then it directs to a form which post the data to a servlet. And when i am trying to run i am getting this error,please help me out</p>
  
  <p>i am working with sts,tomcat 8,maven web app</p>
  
  <p><a href="https://i.stack.imgur.com/rFhqC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rFhqC.jpg" alt="enter image description here"></a></p>
  
  <p>and my dir structure is as below</p>
  
  <p><a href="https://i.stack.imgur.com/jvPUG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jvPUG.jpg" alt="enter image description here"></a></p>
  
  <p>welcome.html</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="ISO-8859-1"&gt;
          &lt;title&gt;Film Management System&lt;/title&gt;
          &lt;link rel="stylesheet" href="style.css"&gt;
          &lt;link rel="stylesheet" href="login.css"&gt;
  
          &lt;script type="text/javascript" src="../script/angular.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="../script/angular-route.min.js"&gt;&gt;&lt;/script&gt;
  
          &lt;script type="text/javascript" src="../script/appConfig.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="../script/appCtrl.js"&gt;&lt;/script&gt;
  
      &lt;/head&gt;
  
      &lt;body ng-app="myApplication"&gt;
          &lt;img src='../static/bg.png' width="1280" height="222"/&gt;
  
          &lt;div ng-controller="myCtrl"&gt;
              &lt;a href="#/AddNewFilm" class="addfilm_buttton button1" ng-click="action.addFilm()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Add film&lt;/a&gt;
  
              &lt;a href="#/ModifyFilm" class="modifyfilm_buttton button1" ng-click="action.modifyFilm()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Modify  Film&lt;/a&gt;
  
              &lt;a href="#/ModifyFilm" class="searchfilm_buttton button1" ng-click="action.searchFilm()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Search Film&lt;/a&gt;
  
              &lt;a href="#/ModifyFilm" class="removefilm_buttton button1" ng-click="action.removeFilm()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Remove Film&lt;/a&gt;
  
              &lt;a href="ViewAllFilms.html" class="viewallfilms_buttton button1" ng-click="action.getAllFilms()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;View All Films&lt;/a&gt;
  
              &lt;a href="#/AddNewActor" class="addactor_buttton button1" ng-click="action.addActor()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Add Actor&lt;/a&gt;
  
              &lt;a href="#/ModifyActor" class="modifyactor_buttton button1" ng-click="action.modifyActor()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Modify Actor&lt;/a&gt;
  
              &lt;a href="#/SearchActor" class="searchactor_buttton button1" ng-click="action.searchActor()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Search Actor&lt;/a&gt;
  
              &lt;a href="#/RemoveActor" class="removeactor_buttton button1" ng-click="action.removeActor()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Remove Actor&lt;/a&gt;
  
              &lt;a href="ViewAllActors.html" class="viewallactors_buttton button1" onclick="return submitMyForm();" ng-click="action.getAllActors()" ng-hide="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;View All Actors&lt;/a&gt;
  
              &lt;a href="#/" class="show_buttton button1"  ng-click="showButtons()" ng-show="action.buttonClicked.addFilm || action.buttonClicked.modifyFilm || action.buttonClicked.searchFilm || action.buttonClicked.removeFilm  || action.buttonClicked.getAllFilms || action.buttonClicked.addActor || action.buttonClicked.modifyActor || action.buttonClicked.searchActor || action.buttonClicked.removeActor  || action.buttonClicked.getAllActors"&gt;Home&lt;/a&gt;
  
          &lt;div ng-view&gt;&lt;/div&gt;
  
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>my AddNewActor.html is </p>
  
  <pre><code>&lt;div id="login"&gt;
  
          &lt;h2&gt;&lt;span class="fontawesome"&gt;&lt;/span&gt;Add New Actor&lt;/h2&gt;
  
          &lt;form action="AddNewActor" method="post"&gt;
  
              &lt;fieldset&gt;
  
                  &lt;p&gt;&lt;label for="firstName"&gt;Enter Actor First Name&lt;/label&gt;&lt;/p&gt;
                  &lt;p&gt;&lt;input type="text" name="firstName" value="first name" onBlur="if(this.value=='')this.value='first name'" onFocus="if(this.value=='first name')this.value=''"&gt;&lt;/p&gt; &lt;!-- JS because of IE support; better: placeholder="mail@address.com" --&gt;
  
                  &lt;p&gt;&lt;label for="secondName"&gt;Enter Actor last Name&lt;/label&gt;&lt;/p&gt;
                  &lt;p&gt;&lt;input type="text" name="lastName" value="last name" onBlur="if(this.value=='')this.value='last name'" onFocus="if(this.value=='last name')this.value=''"&gt;&lt;/p&gt; &lt;!-- JS because of IE support; better: placeholder="password" --&gt;
  
                  &lt;p&gt;&lt;input type="submit" value="Submit"&gt;&lt;/p&gt;
  
              &lt;/fieldset&gt;
  
          &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and my web.xml is </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_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
    &lt;display-name&gt;Film Management System&lt;/display-name&gt;
    &lt;servlet&gt;
      &lt;display-name&gt;ViewAllActors&lt;/display-name&gt;
      &lt;servlet-name&gt;ViewAllActors&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.flp.fms.controller.ViewAllActors&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet&gt;
      &lt;description&gt;
      &lt;/description&gt;
      &lt;display-name&gt;ViewALLFilms&lt;/display-name&gt;
      &lt;servlet-name&gt;ViewALLFilms&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.flp.fms.controller.ViewALLFilms&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet&gt;
      &lt;description&gt;
      &lt;/description&gt;
      &lt;display-name&gt;AddNewActor&lt;/display-name&gt;
      &lt;servlet-name&gt;AddNewActor&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.flp.fms.controller.AddNewActor&lt;/servlet-class&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ViewAllActors&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/ViewAllActors&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ViewALLFilms&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/ViewALLFilms&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;AddNewActor&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/AddNewActor&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>my AddNewActor.java(servlet)</p>
  
  <pre><code>package com.flp.fms.controller;
  
  import java.io.IOException;
  import java.io.PrintWriter;
  
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  
  public class AddNewActor extends HttpServlet {
      private static final long serialVersionUID = 1L;
  
  
      protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          PrintWriter out=response.getWriter();
          out.println("tdctdt");
      }
  
  }
  </code></pre>