This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes Servlet error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Servlet error" Watch "Servlet error" New topic
Author

Servlet error

Raksha Mishra
Greenhorn

Joined: Jul 11, 2010
Posts: 10
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

Joined: Jul 11, 2010
Posts: 10
I did not run it at the right level.. Thanks all the problem got resolved.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Servlet error
 
jQuery in Action, 3rd edition