title: HTTP STATUS 404, requested resource is not available. What mistake am I doing? Tomcat 6.0
body: <p>My servlet application is </p>
  
  <pre><code>package p1;
  import javax.servlet.*;
  import java.io.*;
  
  public class MyServ extends GenericServlet{
   public void init(ServletConfig con){
      System.out.println("INIT");
   }
  
   public void service(ServletRequest req,ServletResponse res) throws ServletException,IOException{
      PrintWriter pw=res.getWriter();
      pw.println("HELLO");
      pw.close();
   }
  }
  </code></pre>
  
  <p>and my web. xml file is</p>
  
  <pre><code>&lt;web-app&gt;
   &lt;servlet&gt;
    &lt;servlet-name&gt;sai&lt;/servlet-name&gt;
    &lt;servlet-class&gt;p1.MyServ&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;sai&lt;/servlet-nsame&gt;
    &lt;url-pattern&gt;/abc&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I have pasted my WEB-INF folder into the webapp folder of tomcat 6.0. The WEB-INF folder has classes and web.xml file. classes folder has the package of my java program. When I try to run my servlet in the browser it shows </p>
  
  <p>HTTP Status 404 -
  type Status report
  message description The requested resource is not available.</p>
  
  <p>Whats the mistake i am doing?</p>