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 what
the heck is going on, becausee what happens is that the same tomcat
version is being used in windowsxp and linux slackware, and I am using
the same sample application.  The only difference is that unders windows
it works but not under slackware.  This whole thing started with me
trying a Struts sample application.  I will continue to poke around to
see if somehow I am doing something so wrong that I am not even seeing
it.
Is there a way to get some logs going?  The only error I get is 404 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:[EMAIL PROTECTED] 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
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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to