The most likely cause is that your new SampleApp directory does not have a WEB-INF subdirectory containing a valid web.xml deployment descriptor. Tomcat only recognizes a directory under webapps as an application if it meets those requirements. This recognition is done during startup. You should download the servlet API documentation where you will find the requirements for deployment descriptors in minute detail. Bill
Joined: Aug 31, 2004
Thanks for the reply...but i have a web-inf folder with a web.xml descriptor and stuff....Still, no luck.
Assuming that the http://localhost:8080/servlets-examples is working fine. Make a copy of "servlets-examples" directory under webapps and rename it to any name, e.g. testing. So now under webapps, a new application called "testing" is created and its contents are similar to servlets-examples. Startup the tomcat and see if you can run this new application http://localhost:8080/testing. If it's ok, you may want to compare the web.xml of the SampleApp and the one in servlets-examples.