RE: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-06-06 Thread Marc Saegesser
n [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 01, 2001 12:04 AM > To: [EMAIL PROTECTED] > Subject: Re: Problem+Fix concerning static error pages in Tomcat 3.2.2 > > > Hmm.. In fact (in 3.2.2 atleast), it does not even matter if the > file exists > or not, since the FileHandle

Re: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-31 Thread Peter S. Heijnen
Hmm.. In fact (in 3.2.2 atleast), it does not even matter if the file exists or not, since the FileHandler simply uses the originally requested file and StaticInterceptor. So I suppose its the same bug alltogether. If things are fixed in 3.2.3, I'm happy enough though. The dirty fix I posted earl

Re: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-30 Thread David Rees
A related bug to this is a nasty stack overflow error if an error page that you define is not found. It's pretty easy to reproduce, just add this to your web.xml: 404 /some-nonexistant-file.jsp Then try to access a non-existant file. Tomcat will go into an infinite loop un

RE: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-30 Thread Marc Saegesser
r [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 30, 2001 9:38 AM > To: [EMAIL PROTECTED] > Subject: RE: Problem+Fix concerning static error pages in Tomcat 3.2.2 > > > Bloody hell. > > This bug was fixed a couple months ago and then got whacked by a > late commit &

RE: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-30 Thread Marc Saegesser
- > From: Peter S. Heijnen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 30, 2001 12:50 AM > To: [EMAIL PROTECTED] > Subject: Re: Problem+Fix concerning static error pages in Tomcat 3.2.2 > > > I use virtual hosts, but don't think that is the cause, although > I have not

Re: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-29 Thread Peter S. Heijnen
y, May 29, 2001 8:54 PM Subject: RE: Problem+Fix concerning static error pages in Tomcat 3.2.2 > Could you please supply a sample webapp that demonstrates this? Static > error pages seem to work OK for me. > > > -Original Message- > > From: Peer Heijnen [mailto:[EMAIL PR

RE: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-29 Thread Marc Saegesser
Could you please supply a sample webapp that demonstrates this? Static error pages seem to work OK for me. > -Original Message- > From: Peer Heijnen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 29, 2001 5:52 AM > To: tomcat-dev > Subject: Problem+Fix concerning static

Re: Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-29 Thread Peer Heijnen
Sorry, I made a mistake in my previous post. The fix we use is 'req.setServletPath( ctx.getPath() + "/" + errorPath )', and _not_ 'req.setRequestURI( ctx.getPath() + errorPath )' as stated in my message. Cheers, Peer Heijnen

Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-29 Thread Peer Heijnen
I'm using Tomcat 3.2.2 (relase) and have configured static .html files as error pages. We used JSP pages before, and everything was fine... However since we're using static files, Tomcat will enter an infinite loop and eventually crash with a stack overflow (with a good change of leaving Tomcat in