Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73155 invoked from network); 15 Feb 2007 16:49:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 16:49:57 -0000 Received: (qmail 15581 invoked by uid 500); 15 Feb 2007 16:49:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15549 invoked by uid 500); 15 Feb 2007 16:49:48 -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 15510 invoked by uid 99); 15 Feb 2007 16:49:48 -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:49:48 -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 Joao.Coelho@ftb.ca.gov designates 168.240.1.21 as permitted sender) Received: from [168.240.1.21] (HELO smtp1.ftb.ca.gov) (168.240.1.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 08:49:38 -0800 Received: from sya10001.ftb.ca.gov (sya10001.ftb.ca.gov [10.201.14.103]) by smtp1.ftb.ca.gov (8.13.7/8.13.7) with ESMTP id l1FGl3ea028021 for ; Thu, 15 Feb 2007 08:47:03 -0800 Received: from fj15.ftb.ca.gov ([10.80.6.10]) by fg240.ftb.ca.gov with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Feb 2007 08:49:17 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Jsp gest 404 error Date: Thu, 15 Feb 2007 08:48:57 -0800 Message-ID: In-Reply-To: <45D48E38.8020909@gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Jsp gest 404 error Thread-Index: AcdRINVfOtNQx6cRR8ON/AmeyQKW7AAADqnQ From: "Coelho.Joao" To: "Tomcat Users List" X-OriginalArrivalTime: 15 Feb 2007 16:49:17.0345 (UTC) FILETIME=[3B444910:01C75121] X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0701160000 definitions=main-0702150026 X-Virus-Checked: Checked by ClamAV on apache.org You know you may be onto something. I don't have my laptop with me today at work, but I will check. Thanks much. I will let you know what happens. joao=20 -----Original Message----- From: Zack Grafton [mailto:zachary.grafton@gmail.com]=20 Sent: Thursday, February 15, 2007 8:46 AM To: Tomcat Users List Subject: Re: Jsp gest 404 error Joao, There should be logs under the logs directory. It should be at the same level in the filesystem as your webapps directory. Have you checked the file permissions? Zack Coelho.Joao wrote: > Thanks Zack. > I do have the web.xml file in the WEB-INF directory. I am not sure=20 > what the heck is going on, becausee what happens is that the same=20 > tomcat version is being used in windowsxp and linux slackware, and I=20 > am using the same sample application. The only difference is that=20 > unders windows it works but not under slackware. This whole thing=20 > started with me trying a Struts sample application. I will continue=20 > to poke around to see if somehow I am doing something so wrong that I=20 > am not even seeing it. > > Is there a way to get some logs going? The only error I get is 404=20 > and the text that it cannot find such url i.e. > '/jspcr2/chap05/examples/somepage.jsp' > Thanks again. > > joao > > -----Original Message----- > From: Zack Grafton [mailto:zachary.grafton@gmail.com] > Sent: Thursday, February 15, 2007 8:26 AM > To: Tomcat Users List > Subject: Re: Jsp gest 404 error > > Hello Again, > > Every web application requires a WEB-INF/web.xml file. If that file=20 > isn't there, Tomcat won't treat the directory you created as a web=20 > 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: > =20 >> What is strange is that the very same applications that did not work=20 >> in Slackware 10.1 using tomcat 4.1 do work in windowsxp using tomcat >> =20 > 5.5 . > =20 >> I was trying to run examples from a book on JSP "The complete >> =20 > Reference" > =20 >> and I placed the sample code in slackware under the webapps=20 >> directory, >> =20 > > =20 >> something like this: webapps/jspcr/chap05/examples/somepage.jsp. >> Tomca4.1 does not find the jsp but will find other applications I=20 >> have >> =20 > > =20 >> 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=20 >> example, shows up. >> >> I am not sure at all what the problem is. And I don't know if this=20 >> 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;=20 >> meaning, if you type in something like=20 >> http://localhost:8080/myapp/WEB-INF/index.jsp, you will get a 404 >> =20 > error. > =20 >> Where you should place them is entirely dependent on you. You can=20 >> write controller servlets and use a RequestDispatcher to forward to a >> jsp in your WEB-INF directory. If you are just using jsp pages,=20 >> don't >> =20 > > =20 >> place them in the WEB-INF directory. >> >> Zack >> >> >> Coelho.Joao wrote: >> =20 >> =20 >>> I am using tomcat 4.1. Where must the jsp page be in relation to >>> =20 > the > =20 >>> WEB-INF directory ? >>> I am running into some dificulties with some pages. Some pages show >>> up and others give me an error 404. >>> >>> >>> =20 >>> =20 >>> =20 >> --------------------------------------------------------------------- >> 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 >> >> >> =20 >> =20 > > > --------------------------------------------------------------------- > 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,=20 > e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > =20 --------------------------------------------------------------------- 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