Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2625 invoked from network); 18 Mar 2000 03:05:54 -0000 Received: from easystreet.com (HELO easystreet01.easystreet.com) (206.26.36.40) by locus.apache.org with SMTP; 18 Mar 2000 03:05:54 -0000 Received: from mytownnet.com (dsl-208-151-245-220.easystreet.com [208.151.245.220]) by easystreet01.easystreet.com (8.9.1/8.9.1) with ESMTP id TAA26217 for ; Fri, 17 Mar 2000 19:05:53 -0800 (PST) Sender: cmcclanahan@easystreet.com Message-ID: <38D2F226.ECBB3756@mytownnet.com> Date: Fri, 17 Mar 2000 19:04:06 -0800 From: "Craig R. McClanahan" Reply-To: cmcclanahan@mytownnet.com Organization: MyTown Network, Incorporated X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.12-20 i586) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: I can't execute servlet References: <00be01bf9083$d83f3600$e7560018@plstn1.sfba.home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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: http://localhost:8080/servlet/MyServlet 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