tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bodycombe, Andrew" <>
Subject RE: Touble with context container
Date Mon, 23 Feb 2004 17:08:46 GMT
Tomcat will not see your servlet until you create a web.xml file for your

The following document explains the directory layout:
Pay particular attention to this section:

In short, you need to do the following:

1. Create a WEB-INF directory under H:\Tomcat.
2. Create a lib directory under H:\Tomcat\WEB-INF
3. Create a classes directory under H:\Tomcat\WEB-INF
4. Move your class file to H:\Tomcat\WEB-INF\classes\your\package. (I don't
know what package your class is in, so I'm assuming your.package for now)
5. Create a web.xml file under H:\Tomcat\WEB-INF. Add the following text:

<?xml version="1.0" encoding="ISO-8859-1"?>

6. Restart tomcat
7. Type http://localhost:8080/Tomcat/departement into your browser to see if
your servlet is working.


-----Original Message-----
From: Didier Croutz [] 
Sent: 23 February 2004 16:12
To: Bodycombe, Andrew
Subject: RE: Touble with context container


First thanks for your response. I have no "H:\Tomcat\WEB-INF\web.xml" file 
but "C:\Program Files\Tomcat 5.0\conf\server.xml".


A 14:42 23/02/2004 +0000, vous avez écrit :
>What is in your H:\Tomcat\WEB-INF\web.xml file?
>-----Original Message-----
>From: Didier Croutz []
>Sent: 23 February 2004 14:22
>Subject: Touble with context container
>          Hello,
>          I'm starting with Tomcat and I've got a configuration problem.
>          I've installed Tomcat 5.014 on a Windows 2K SP4 workstation into
>the default directory ("C:\Program Files\Tomcat 5.0"). I've kept the
>default settings (e.g. port 8080, admin.xml, server.xml ....). I stored my
>applications on a network drive (H:) into a directory named Tomcat.
>          I've just modified C:\Program Files\Tomcat 5.0\conf\server.xml
>file a little bit adding <Context path="/Tomcat" docBase="H:/Tomcat"
>debug="0"> line (server.xml joined to this mail).
>          My testing application is into H:\Tomcat directory
>(departement.class and recherchDep.html files joined to this mail). I fill
>the address field of my web browser (internet explorer 6.0.2800.1106) with:
>htpp://localhost:8080/Tomcat/recherchDep.html. I  can reach the html page
>but when I tried to launch "departement" script I get a 404 message into my
>browser saying that it can reach "departement" resource.
>          Could somebody help me ?
>          Thanks,
>          Regards.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message