I am new to servlets. I am using Tomcat version 5.5. I am trying to run a simple servlet. The class file is under \tomcat\tcat-5.5\webapps\ch1\WEB-INF\classes. I have placed the deployment descriptor file under tomcat\tcat-5.5\webapps\ch1\WEB-INF\. I restarted Tomcat after copying the two files.
When running the command http:localhost:8080/ch1/myserv1, I get the following error. <HR> HTTP Status 404 - /ch1/myserv1 type Status report message /ch1/ description The requested resource (/ch1/myserv1) is not available. </HR>
I trust the problem is with relating the directory ch1 with Tomcat. Please advise what needs to be done.
Joined: Sep 21, 2005
Please ignore the tags <HR> and </HR> in the error message. Apologize for that.
Rajesh <br /> <br />SCJP1.4 SCWCD1.4 SCBCD 1.3 ,SCDJWS(Preparing..)<br /> <br />There is no free will.It is the phenomenon bound by cause and effect.But there is something behind will which is free---Swami Vivekananda...
Generally speaking you will save yourself a LOT of trouble if you put ALL classes involved with servlets in packages. The directory structure under WEB-INF/classes will have to reflect the package structure. Bill