On Tue, 5 Dec 2000, Kevin Sangeelee wrote:

Hi, thanks for trying to help :)

> The tags you describe below look almost exactly the same as those I
> created myself just today, and it works OK.

Hate it when it's only me... and it's even worse when it's not an obvious
error I'm making....

> Where is the 404 being generated? Are you using Apache and mod_jk? If
> so, is the invalid path that you're providing one that would normally be
> handled by Apache (i.e. Apache generates and handles the 404 entirely
> without the knowledge of Tomcat)?

I'm using Tomcat stand-alone (I had been using it integrated with an EJB
server JBoss - the same errors were popping up).

Here's a sequence of events to give you an idea of what's happening...

Using the war created as I described before, with an error-page pointing
to a file /error/error.html (for instance - this definitely exists, if I 
type localhost:8080/Greeting/error/error.html it is displayed), if I type
in a URL that doesn't exist, tomcat prints out 

2000-12-06 10:19:39 - Ctx( /Greeting ): 404 R( /Greeting + /x.html +
null) null

Over and over until it finally overflows...

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)

Nothing is printed out in the logs to say this happened..

If I replace my error-page location with error/error.html (missing the
forward slash) the same 404 is kicked out by Tomcat, but it doesn't loop
over and over, and the browser displays a 404 message like this:

Error: 404

Location: /Greeting/indextml

null

I haven't tried re-directing to a jsp. that's probably the next thing I'll
give a go.

Catherine


Reply via email to