Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 83653 invoked from network); 23 Feb 2004 17:10:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Feb 2004 17:10:32 -0000 Received: (qmail 76198 invoked by uid 500); 23 Feb 2004 17:10:06 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 75972 invoked by uid 500); 23 Feb 2004 17:10:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 75958 invoked from network); 23 Feb 2004 17:10:04 -0000 Received: from unknown (HELO mailgate.siemenscomms.co.uk) (194.129.217.115) by daedalus.apache.org with SMTP; 23 Feb 2004 17:10:04 -0000 Received: from CONVERSION-DAEMON.siemenscomms.co.uk by siemenscomms.co.uk (PMDF V6.0-24 #40642) id <0HTJ00301RMAXP@siemenscomms.co.uk> for tomcat-user@jakarta.apache.org; Mon, 23 Feb 2004 17:08:36 +0000 (GMT) Received: from beex10.siemenscomms.co.uk ([137.223.246.252]) by siemenscomms.co.uk (PMDF V6.0-24 #40642) with ESMTP id <0HTJ002APRKCFA@siemenscomms.co.uk>; Mon, 23 Feb 2004 17:07:24 +0000 (GMT) Received: by beex10.siemenscomms.co.uk with Internet Mail Service (5.5.2650.21) id ; Mon, 23 Feb 2004 17:14:10 +0000 Content-return: allowed Date: Mon, 23 Feb 2004 17:08:46 +0000 From: "Bodycombe, Andrew" Subject: RE: Touble with context container To: 'Didier Croutz' , "'tomcat-user@jakarta.apache.org'" Message-id: <50B1CBA96870A34799A506B2313F2667B36F78@ntht201e> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Tomcat will not see your servlet until you create a web.xml file for = your application. The following document explains the directory layout: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/ Pay particular attention to this section: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html 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: departement your.package.departement departement /departement 6. Restart tomcat 7. Type http://localhost:8080/Tomcat/departement into your browser to = see if your servlet is working. Regards, Andy -----Original Message----- From: Didier Croutz [mailto:Didier.Croutz@univ-nancy2.fr]=20 Sent: 23 February 2004 16:12 To: Bodycombe, Andrew Subject: RE: Touble with context container Hi, First thanks for your response. I have no "H:\Tomcat\WEB-INF\web.xml" = file=20 but "C:\Program Files\Tomcat 5.0\conf\server.xml". Regards. A 14:42 23/02/2004 +0000, vous avez =E9crit : >What is in your H:\Tomcat\WEB-INF\web.xml file? > >-----Original Message----- >From: Didier Croutz [mailto:Didier.Croutz@univ-nancy2.fr] >Sent: 23 February 2004 14:22 >To: tomcat-user@jakarta.apache.org >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 debug=3D"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: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org