Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 57388 invoked from network); 15 Feb 2007 16:27:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 16:27:21 -0000 Received: (qmail 25866 invoked by uid 500); 15 Feb 2007 16:26:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 25833 invoked by uid 500); 15 Feb 2007 16:26:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 25794 invoked by uid 99); 15 Feb 2007 16:26:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 08:26:53 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zachary.grafton@gmail.com designates 66.249.82.227 as permitted sender) Received: from [66.249.82.227] (HELO wx-out-0506.google.com) (66.249.82.227) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 08:26:40 -0800 Received: by wx-out-0506.google.com with SMTP id i26so594913wxd for ; Thu, 15 Feb 2007 08:26:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=kABej4fVfgWC2dsnekzdfTK7fUDq6IUjCee9QL552o1MJc0Bj2YeEnu9OKNu5UWPX43sS9UKLkk1US7fbc/OHSkRTa791yqo6xg1v5b4ndpK2A0n1lREkAFt34Uvtq0J8ShgwAAVuQUXH/j58Y+IoeqTH9kvZjUjJbhZS61dfIM= Received: by 10.70.57.2 with SMTP id f2mr3335808wxa.1171556779473; Thu, 15 Feb 2007 08:26:19 -0800 (PST) Received: from ?192.168.2.102? ( [71.121.76.141]) by mx.google.com with ESMTP id i13sm3192582wxd.2007.02.15.08.26.18; Thu, 15 Feb 2007 08:26:18 -0800 (PST) Message-ID: <45D489A4.1050701@gmail.com> Date: Thu, 15 Feb 2007 11:26:12 -0500 From: Zack Grafton User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Jsp gest 404 error References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello Again, Every web application requires a WEB-INF/web.xml file. If that file isn't there, Tomcat won't treat the directory you created as a web application. As long as you have WEB-INF/web.xml file, you can place the JSP files in subdirectories and Tomcat will find them. Hope that helps, Zack Coelho.Joao wrote: > What is strange is that the very same applications that did not work in > Slackware 10.1 using tomcat 4.1 do work in windowsxp using tomcat 5.5 . > I was trying to run examples from a book on JSP "The complete Reference" > and I placed the sample code in slackware under the webapps directory, > something like this: webapps/jspcr/chap05/examples/somepage.jsp. > Tomca4.1 does not find the jsp but will find other applications I have > under webapps. This same directory structure was used with Tomcat5.5 in > windows and I have no problem with it: the page somepage.jsp, for > example, shows up. > > I am not sure at all what the problem is. And I don't know if this > helps me, but is there a way to log the errors so that I can at least > try to figure out what's wrong ? > > -----Original Message----- > From: Zack Grafton [mailto:zachary.grafton@gmail.com] > Sent: Wednesday, February 14, 2007 6:12 PM > To: Tomcat Users List > Subject: Re: Jsp gest 404 error > > Hello, > > Everything in the WEB-INF directory isn't directly accessible; meaning, > if you type in something like > http://localhost:8080/myapp/WEB-INF/index.jsp, you will get a 404 error. > Where you should place them is entirely dependent on you. You can write > controller servlets and use a RequestDispatcher to forward to a jsp in > your WEB-INF directory. If you are just using jsp pages, don't place > them in the WEB-INF directory. > > Zack > > > Coelho.Joao wrote: > >> I am using tomcat 4.1. Where must the jsp page be in relation to the >> WEB-INF directory ? >> I am running into some dificulties with some pages. Some pages show >> up and others give me an error 404. >> >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org