tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: I can't execute servlet
Date Sat, 18 Mar 2000 03:04:06 GMT
Chris Bruce wrote:

> Can anyone help?  I tried putting a servlet in the
> example/WEB-INF/classes directory and it won't run (it is not being
> found)  How do I set up the xml file to correctly point to servlets?

What URL are you trying?  If your servlet class is named MyServlet, and
you put the file MyServlet.class in the WEB-INF/classes directory, you
should be able to access it with:


The WEB-INF/classes directory is automatically added to the class path
for a web application -- it is not accessed directly via a URL.

Craig McClanahan

View raw message