title: java servlet not found error 404 in eclipse
body: <p>I am using Eclipse 4.3 kepler on Ubuntu 14.04 and using Apache tomcat 7 , I have successfully created .jsp and .html files in my project but I cannot Run a servlet, I have all jar files added in library . I have read every article on this error 404 ,which I am getting when I launch the following servlet </p>
  
  <pre><code>package servlet;
  
  import java.io.IOException;
  import java.io.PrintWriter;
  import javax.servlet.ServletException;
  import javax.servlet.annotation.WebServlet;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  
  
  
  @WebServlet("/taxProcessor")
  public class taxProcessor extends HttpServlet {
  private static final long serialVersionUID = 1L;
  
  
  /**
   * @see HttpServlet#HttpServlet()
   */
  public taxProcessor() {
      super();
      // TODO Auto-generated constructor stub
  }
  
  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      // TODO Auto-generated method stub
      String s=request.getParameter("t1");
      int i=Integer.parseInt(s);
      String s1=request.getParameter("t2");
      int a=Integer.parseInt(s1);
      int t=0;
      if(i&gt;=500000)
      {
          t=i*(30/100);
      }else if(i&gt;=300000)
      {
          t=i*(20/100);
      }else if(i&gt;=200000)
      {
          t=i*(10/100);
      }
      if(a&gt;=60)
      {
          t=t-(i*(10/100));
      }
  PrintWriter out=response.getWriter();
  out.println("Thank you for Visiting");
  out.println("Your Tax Laibality is"+t+"\n");
  out.close();
  }
  
  /**
   * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      // TODO Auto-generated method stub
  }
  </code></pre>
  
  <p>}</p>
  
  <p>my web.xml file is </p>
  
  <p><img src="https://i.stack.imgur.com/f4Ghw.png" alt="enter image description here"></p>
  
  <p>and all what I get is this
  <img src="https://i.stack.imgur.com/Qx673.png" alt="enter image description here"></p>