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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 ?
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