tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid C <>
Subject Tomcat/Web application conf: status code 404 versus status code 302 + 200
Date Fri, 09 Apr 2004 13:25:15 GMT
Good Morning

We use Tomcat 5.0.18 with 2 instances:

For the both instances, we catch the 404 status code
returned in the http response to display an index

file web.xml:

If a web browser asks a non existing url, as expected
the 2 tomcat instances return the index.jsp page
but according to the tomcat log the behaviour 
is not the same: 
there is one http request for one tomcat instance
(with  a status code 404) against 2 http requests for
the other instance (status code 302 then status code

First tomcat instance log: - - [09/Apr/2004:14:27:21 +0100] "GET
/appli/notExistingPage HTTP/1.1" 404 - 6008

Second tomcat instance log: - - [09/Apr/2004:14:27:21 +0100] "GET
/appli/notExistingPage HTTP/1.1" 302 - - - [09/Apr/2004:14:27:21 +0100] "GET
/appli/index.jsp HTTP/1.1" 200 5900

I failed to find in the configuration why the  2
tomcat instances behave differently for our web

It is critical for us to have only one http request
with the error code 404: 
any idea how can I control this behaviour in the
tomcat or web application configuration ?

Any help will be appreciated

thank you


Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message