This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Not able to run servlet by right clicking the servlet in Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Not able to run servlet by right clicking the servlet in Netbeans" Watch "Not able to run servlet by right clicking the servlet in Netbeans" New topic
Author

Not able to run servlet by right clicking the servlet in Netbeans

praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
Hello ,

I have created a web project in netbeans 6.9.1.
I have created a servlet in it. I have selected the option to enter the servlet details in the web.xml by selecting the radio button option provided by Netbeans. Now when i right click the servlet and try tp run it, it gives the error:

class "servlet name" neither has a main method nor it is a servlet specified in web.xml

But I have checked the web.xml and the servlet details are mentioned int the web.xml

Any help is appriciated.
regards,
Praveen
praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
Hello All,
Any help is most welcome.
regards,
praveen
 
Consider Paul's rocket mass heater.
 
subject: Not able to run servlet by right clicking the servlet in Netbeans
 
Similar Threads
How to run JUnit test in Netbeans 4.0
module has not been deployed
Default netbeans servlet with JSP file
Servlet error
Servlets/JSP on netBeans