title: tomcat requested resource () is not available
body: <p>i know its a very common question as i find many questions relating to this in several forums, including SO. but i have not found a solution yet
  my web.xml (located in WEB-INF)</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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 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;SMSProjectNew&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
    &lt;servlet&gt;
      &lt;description&gt;&lt;/description&gt;
      &lt;display-name&gt;ReceiveMessagesServlet&lt;/display-name&gt;
      &lt;servlet-name&gt;ReceiveMessagesServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.sendreceive.ReceiveMessagesServlet&lt;/servlet-class&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;ReceiveMessagesServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/ReceiveMessagesServlet&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>the html page index.html, located in WebContent folder </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  The application started successfully version 1:27
  &lt;form action="/ReceiveMessagesServlet" method="post"&gt;
  &lt;input type="text" name="number"/&gt;
  &lt;input type="text" name="message"/&gt;
  &lt;input type="submit" name="submit"/&gt;
  &lt;/form&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>finally the servlet, ReceiveMessagesServlet, located in src\com.sendreceive
  package com.sendreceive;</p>
  
  <pre><code>import java.io.IOException;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
     public class ReceiveMessagesServlet extends HttpServlet {
      private static final long serialVersionUID = 1L;
  
      public ReceiveMessagesServlet() {
          super();
          // TODO Auto-generated constructor stub
      }
  
  
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          processRequest(request,response);
      }
  
      protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          processRequest(request,response);
      }
  
      protected void processRequest(HttpServletRequest request,
              HttpServletResponse response) {
          String responseMessage = request.getParameter("message");
          String responseNumber = request.getParameter("number");
          System.out.println(responseMessage+responseNumber);
      }
  
  }
  </code></pre>
  
  <p>i have installed the tomcat plugin in eclipse. when i right click on the project and then click on run the project on server. tomcat server starts in eclipse and the index.html page is shown..but when i enter some values in the fields and click submit..it gives the 404 error..i have been struggling from past 2 hours..kindly help..also..fyi, i am using this tutorial
  <a href="http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html">http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html</a></p>