Fixing error pages on virtual hosts.

2001-04-24 Thread Peer Heijnen
Hi, We've been using Tomcat 3.2.1 quite succesfully, but ran into trouble with error pages on virtual domains (causing an infinite loop in 3.2.1, and a 404 in 3.2.2b3). We fixed this problem by setting the hostname in ord.apache.tomcat.core.ContextManager#getHandlerForPath( Context ctx, String p

Problem+Fix concerning static error pages in Tomcat 3.2.2

2001-05-29 Thread Peer Heijnen
modify the request in such a way, but error attributes are also set in this request and it seems to work fine for us. But this raises another question: why construct a completely new request and response in getHandlerForPath, and then throw it away? Cheers, Peer Heijnen

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