title: Class "<CLASS_NAME>" nether has a main method nor its servlet specified in file web.xml
body: <p>I am using NetBeans 7.1 and made a servlet in it. Now when I am running it, it is giving me</p>
  
  <blockquote>
    <p>Class ' ' neither has a main method nor its a servlet specified in web.xml</p>
  </blockquote>
  
  <p>After this, it is showing me one more error:</p>
  
  <blockquote>
    <p>class ' '  does not have a main method"</p>
  </blockquote>
  
  <p>I can't figure out what the problem is. I have uninstalled and installed the NetBean twice but no help. The servlet is just an ordinary servlet with no logic in it.</p>