Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 45724 invoked from network); 30 May 2003 16:07:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 May 2003 16:07:20 -0000 Received: (qmail 20471 invoked by uid 97); 30 May 2003 16:09:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 20464 invoked from network); 30 May 2003 16:09:34 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 30 May 2003 16:09:34 -0000 Received: (qmail 44250 invoked by uid 500); 30 May 2003 16:07:03 -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 44239 invoked from network); 30 May 2003 16:07:03 -0000 Received: from unknown (HELO JTURNER) (207.86.123.243) by daedalus.apache.org with SMTP; 30 May 2003 16:07:03 -0000 Received: from JTURNER ([127.0.0.1]) by JTURNER with Microsoft SMTPSVC(5.0.2195.5329); Fri, 30 May 2003 12:07:05 -0400 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Typical newbie problems References: <002501c326c4$8c370f50$1800a8c0@Tuerto> Message-ID: Content-Type: text/plain; charset=iso-8859-15; format=flowed From: John Turner Date: Fri, 30 May 2003 12:07:04 -0400 In-Reply-To: <002501c326c4$8c370f50$1800a8c0@Tuerto> User-Agent: Opera7.03/Win32 M2 build 2670 X-OriginalArrivalTime: 30 May 2003 16:07:05.0192 (UTC) FILETIME=[836DA680:01C326C5] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The /examples web app, and most Tomcat books published before 4.1.12-ish were released use the Invoker servlet. The Invoker is what lets you just put a servlet into a directory and call it. This is disabled by default in more recent versions of Tomcat. You have to explicitly declare every servlet in web.xml and map a URL to it, since using the Invoker is not recommended (security reasons). http://tomcatfaq.sourceforge.net/miscellaneous.html and more specifically http://marc.theaimsgroup.com/?l=tomcat-user&m=104327383710262&w=2 HTH John On Fri, 30 May 2003 12:00:08 -0400, John Collier wrote: > I am trying to work through some servlet examples from a book > (Java for the Web with Servlets, JSP, and EJB) and am getting the > dreaded "HTTP Status 404" message, i.e., "The requested resource > (xxx) is not available." This does not surprise me. What concerns > me is that I have no clue how to go about finding out what the problem > actually is. > > My version of Tomcat is 4.1.24. I am using JDK 1.4.1_02. I'm > not using an IDE or anything like that (though I would like to do > so eventually). I can access the Tomcat documentation via > "localhost:8080" and run the various servlet and JSP examples included > with Tomcat. As far as I can tell, I have all of the toy servlet parts > in > the right place, i.e., the directory structure appears to be correct, > there > is a simple web.xml file present, the toy servlet class file is in the > right > location, etc. I'm not seeing any exceptions in any of the log files > (had a couple early on due to a typo in the web.xml file). I also added > a little snippet of code to the toy servlet to open a disk file and write > out > an "I am alive" message, but that is not happening either, so I am > guessing > that the servlet is never getting called. > > I'm guessing there has to be some sort of debug flag or setting that I > can > use to see why this request is failing. I've looked at the server.xml > file > and can see a bunch of debug="0" statements. Which one do I set > and what do I set it to to see why my toy servlet won't run? Where will > the output appear? I figure that if I can get Tomcat to tell me what it > is doing, that would be the first clue as to what is wrong. > > Other suggestions about how to go about tracking down this kind of > problem would be appreciated. I expect to be encountering this situation > rather frequently... > > Thanks, > John Collier > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org