File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Cannot deploy servlet(resource not available) 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Cannot deploy servlet(resource not available)" Watch "Cannot deploy servlet(resource not available)" New topic

Cannot deploy servlet(resource not available)

Sefa Urgenc
Ranch Hand

Joined: Jul 25, 2002
Posts: 34
Hi y'all,

I have a problem deploying the first servlet from Head First, tell me what I am doing wrong (Tomcat5, Java 1.5, WinXP).


and my web.xml is

I have compiled the servlet and put it under webapps\ch1\WEB-INF\classes\Ch1Servlet.class

Sefa Urgenc
Sebastien Col

Joined: Aug 18, 2005
Posts: 13
Did you add the ch1 context in the server.xml file ?
Which error do you actually get ?
Pramod Kumar Pandey
Ranch Hand

Joined: Dec 05, 2013
Posts: 40

Would you please paste the stackTrace you are getting ?
Frits Walraven
Creator of Enthuware JWS+ V6

Joined: Apr 07, 2010
Posts: 1629

Pramod Kumar Pandey wrote:Would you please paste the stackTrace you are getting ?

Well I guess he solved it 9 years ago
I agree. Here's the link:
subject: Cannot deploy servlet(resource not available)
Similar Threads
404 Error
Unable to Run a Servlet in Apache Tomcat
404 error
Error 404 while requesting for a page
Cannot get Servlets Demystified Problem