You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Renato Weiner <re...@yahoo.com> on 2001/07/04 20:53:05 UTC

Tomcat 3.2.2 and Error page 404

 Hi all,
I know this has been discussed, but I can't find an ultimate answer on this topic. I'm running Tomcat 3.2.2, I have latest the StaticInterceptor.java from CVS. If I configure my web.xml with a dynamic 404 error ( let's sat 404.jsp ) that doesn't exist, I got an endless loop:

2001-07-04 02:10:17 - Ctx( ....: ): 404 R(  + /servlet/xxx + null) JSP file not found

2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp /home/client1/404.jsp /home/client1

2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp /home/client1/404.jsp /home/client1

2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp /home/client1/404.jsp /home/client1

Do anybody has a solution for this ?

Thanks 

Renato.



---------------------------------
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 a year!
http://personal.mail.yahoo.com/

RE: Tomcat 3.2.2 and Error page 404 ( not solved )

Posted by Renato Weiner <re...@yahoo.com>.
 Hi Marc,
The latest nightly build didn't work either. This is what I did, just to check.
I downloaded jakarta-tomcat-20010705-src.tar.gz ( from tomcat-3.2-dev tree ) and compiled. My web.xml is:
.....
<web-app>
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
404.jsp doesn't exist. 
I have the looping messages I described early. 
Just to make sure I wasn't doing anything wrong with the compilation, I downloaded the binaries, tested and it didn't work.
I think this error should be fixed. Users delete files and commit mistakes all the time and misconfiguring the web.xml is a very common one.
Thanks all
Renato.
 
 
  Marc Saegesser <ma...@apropos.com> wrote: This has already been fixed in 3.2.3-dev. Try the latest nightly build.

> -----Original Message-----
> From: David Rees [mailto:dbr@greenhydrant.com]
> Sent: Wednesday, July 04, 2001 3:14 PM
> To: tomcat-dev@jakarta.apache.org
> Subject: Re: Tomcat 3.2.2 and Error page 404
> 
> 
> On Wed, Jul 04, 2001 at 11:53:05AM -0700, Renato Weiner wrote:
> > 
> > Hi all,
> > I know this has been discussed, but I can't find an ultimate 
> answer on this topic. I'm running Tomcat 3.2.2, I have latest the 
> StaticInterceptor.java from CVS. If I configure my web.xml with a 
> dynamic 404 error ( let's sat 404.jsp ) that doesn't exist, I got 
> an endless loop:
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): 404 R( + /servlet/xxx + 
> null) JSP file not found
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp 
> /home/client1/404.jsp /home/client1
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp 
> /home/client1/404.jsp /home/client1
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp 
> /home/client1/404.jsp /home/client1
> > 
> > Do anybody has a solution for this ?
> 
> I have hit this myself. The only solution is to make sure that 
> the error pages you 
> define in face do exist. I haven't had time to look into root 
> cause of this myself, but 
> I'm not familiar with the Tomcat source anyway...
> 
> -Dave


---------------------------------
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 a year!
http://personal.mail.yahoo.com/

RE: Tomcat 3.2.2 and Error page 404

Posted by Marc Saegesser <ma...@apropos.com>.
This has already been fixed in 3.2.3-dev.  Try the latest nightly build.

> -----Original Message-----
> From: David Rees [mailto:dbr@greenhydrant.com]
> Sent: Wednesday, July 04, 2001 3:14 PM
> To: tomcat-dev@jakarta.apache.org
> Subject: Re: Tomcat 3.2.2 and Error page 404
> 
> 
> On Wed, Jul 04, 2001 at 11:53:05AM -0700, Renato Weiner wrote:
> > 
> >  Hi all,
> > I know this has been discussed, but I can't find an ultimate 
> answer on this topic. I'm running Tomcat 3.2.2, I have latest the 
> StaticInterceptor.java from CVS. If I configure my web.xml with a 
> dynamic 404 error ( let's sat 404.jsp ) that doesn't exist, I got 
> an endless loop:
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): 404 R(  + /servlet/xxx + 
> null) JSP file not found
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp 
> /home/client1/404.jsp /home/client1
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp 
> /home/client1/404.jsp /home/client1
> > 
> > 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp 
> /home/client1/404.jsp /home/client1
> > 
> > Do anybody has a solution for this ?
> 
> I have hit this myself.  The only solution is to make sure that 
> the error pages you 
> define in face do exist.  I haven't had time to look into root 
> cause of this myself, but 
> I'm not familiar with the Tomcat source anyway...
> 
> -Dave

Re: Tomcat 3.2.2 and Error page 404

Posted by David Rees <db...@greenhydrant.com>.
On Wed, Jul 04, 2001 at 11:53:05AM -0700, Renato Weiner wrote:
> 
>  Hi all,
> I know this has been discussed, but I can't find an ultimate answer on this topic. I'm running Tomcat 3.2.2, I have latest the StaticInterceptor.java from CVS. If I configure my web.xml with a dynamic 404 error ( let's sat 404.jsp ) that doesn't exist, I got an endless loop:
> 
> 2001-07-04 02:10:17 - Ctx( ....: ): 404 R(  + /servlet/xxx + null) JSP file not found
> 
> 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp /home/client1/404.jsp /home/client1
> 
> 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp /home/client1/404.jsp /home/client1
> 
> 2001-07-04 02:10:17 - Ctx( ....: ): Get real path /404.jsp /home/client1/404.jsp /home/client1
> 
> Do anybody has a solution for this ?

I have hit this myself.  The only solution is to make sure that the error pages you 
define in face do exist.  I haven't had time to look into root cause of this myself, but 
I'm not familiar with the Tomcat source anyway...

-Dave