Im new to Tomcat server4.1
Then is there any reason you are starting out with an old release?
There have been significant changes in the 5x branches.
i developed simple servlet and deployed in following directory
c:\javaprogram\web-inf\classes
It should be javaprogram\WEB-INF\classes (case sensitive)
1.set the classpath in environment variables
c:\javaprogram\web-inf\classes;
Tomcat doesn't use your classpath. It finds classes by looking through
a specific set of directories (which is why you need to get the case right).
2.set my context path to c:\javaprogram in server.xml
For 4.1, that is the correct way to do it. This has changed in 5x so you
will need to change your approach when you upgrade. Again, I would start out with a more recent version.
3.having web.xml is available in c:\javaprogram\web-inf\classes Your web.xml file should be in c:\javaprogram\WEB-INF\ (not under classes).
eventhough its telling the 404 error
im not able to find the solution .. I would start by looking at the log files under TOMCAT_HOME/logs.
please dont hesitate to answer... No hesitation here.
and also dont point out "THIS IS NOT RIGHT PLACE TO ASK"
There is a forum devoted to
Apache/Tomcat on this site. If it's appropriate to do so, people will point it out.
cheers
vasu
Cheers
Also, you may want to skip writing an entry in server.xml and just let Tomcat auto-deploy the app for you. You do this by building your web app's directory structure under TOMCAT_HOME/webapps.
If you want a working example, download SimpleServlet.war from
http://simple.souther.us to your webapps directory. Tomcat will unpack and deploy it for you. You will have a properly structured web app with all the right entries in the web.xml file to use as a reference.
Good-Luck
[ April 18, 2005: Message edited by: Ben Souther ]