This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet error

 
Raksha Mishra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

I am using Netbeans 7.0.1 with glassfish server . I wrote a servlet under source package .The web.xml file also has the servlet details mentioned in it .However , when I try to compile the file ...It compiles successfully , but there is no .class file generated under WEB-INF ...because of which when I try to run it ..I get the following error message :

"Class xxx neither has a main method nor it is a servlet defined in web.xml " ...

Please help ...Thanks in advance ...

 
Raksha Mishra
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not run it at the right level.. Thanks all the problem got resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic