tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Bapat <>
Subject Tomcat 4.1.24/Win2K - Servlet not found.
Date Wed, 25 Jun 2003 16:37:24 GMT
        I'm a Tomcat beginner, and I'm having the following problem -  The
browser can't locate the servlet under URL /servlet.

I read some recommended solutions for this in the mailing list, as well as
the sample web.xml file on the Tomcat website, but am still having trouble
getting the Servlets to be found.


but I'm still having trouble modifying my web.xml file. I hope someone can

I'm running Tomcat 4.1.24 LE, j2se1.4.1 and j2ee1.3.1 on Win2000 Prof.

My directory structure is as follows:
- c
-----images, WEB-INF (web.xml lies here)
                   -classes (.java and .class here)

my TestServlet file is located here -

It compiled correctly and made the .class

If I put  http://localhost:8080  when Tomcat runs, I get the welcome page,
so I know Tomcat's running fine.

But if I have http://localhost:8080/myApp/servlet/TestingServlet, (without
the web.xml file)     it doesn't find the servlet.

nor does it find the servlet with this
http://localhost:8080/myApp/servlet/Testing (with web.xml)

I tried putting an image in c:\Tomcat\webapps\myApp\images\     and tried
http://localhost:8080/myApp/images/test.pic   it finds the  picture

myweb.xml file reads as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


I'm still confused as to how I should modify my web.xml file?


also, I'm learning from a book am not sure what the use of <web-app> tag
is, in the web.xml file?

Thank you,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message