Specifying an HTML file as the <location> of an <error-page> causes tomcat to go into a loop of webpage requests, until it hits a StackOverflowError. This problem doesn't occur if you specify a jsp page instead of an HTML file. java.lang.StackOverflowError at java.io.FileNotFoundException.(FileNotFoundException.java:62) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:64) at java.io.FileInputStream.(FileInputStream.java:95) at org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:365) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleStatus(ContextManager.java:1049) at org.apache.tomcat.request.FileHandler.doService(StaticInterceptor.java:387) repeat last 4 lines many, many times. tomcat prints this to console many times before throwing this error: 2000-12-06 05:11:16 - Ctx( /Greeting ): 404 R( /Greeting + /index.htm + null) null but nothing occurs in the error logs....
Apperas to be fixed in 3.2.2 but the bug report was never closed.
Reopened for Tomcat 3.3,
*** Bug 338 has been marked as a duplicate of this bug. ***
*** Bug 315 has been marked as a duplicate of this bug. ***
Well, it wasn't fixed in 3.2.2. My test case was incorrect. Once I fixed it I was able to duplicate the bug. I'll work on a solution prior to 3.2.2b2.
Fixed in 3.2.2