Name your error-pages *.jsp and they will be found by tomcat.
(this problem is discussed in this list)

I reported this bug.

http://znutar.cortexity.com/BugRatViewer/ShowReport/607

regards 

Thomas


To reproduce this bug:
Put a file called 404.html in the root directory of a context.
Create the following web.xml:
...
<error-page>
<error-code>404</error-code>
<location>/404.html</location>
</error-page>
...
and try to load a non-existing page.
Tomcat will hang in an infinite loop (tested on Win NT) with a file not
found error.

Workaround:

Name your error-page *.jsp:
Put a file called 404.jsp in the root directory of a context.
Create the following web.xml:
...
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
...
and try to load a non-existing page.
Tomcat will display the 404.jsp - Page.


-----Ursprüngliche Nachricht-----
Von: Anthony Ikeda [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 18. Dezember 2000 08:43
An: '[EMAIL PROTECTED]'
Betreff: Tomcat 3.2.1 404 errors

Hi, I'm new to this list and I've checked the mailing list archives and
cannot find a solution to my problem...

I have Tomcat 3.2.1 installed on an NT4 box. It seems to be functioning
alright, however when a page cannot be found it seems to get stuck in a loop
and eventually falls over with a stack overflow error:

java.lang.StackOverflowError
        at java.lang.Exception.(Exception.java:38)
        at java.io.IOException.(IOException.java:43)
        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)
...

The last 4 lines just keep repeating over and over again.

I have error-pages set up in the web.xml file (have there been any changes
to this?) but it won't display them either.

Anyone have any ideas on how to fix it?

Cheers,
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143

Reply via email to