Good Morning
We use Tomcat 5.0.18 with 2 instances:
A)
For the both instances, we catch the 404 status code
returned in the http response to display an index
page.
file web.xml:
<error-page>
<error-code>404</error-code>
<location>/index.jsp</location>
</error-page>
B)
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
200).
First tomcat instance log:
199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET
/appli/notExistingPage HTTP/1.1" 404 - 6008
Second tomcat instance log:
199.99.99.99 - - [09/Apr/2004:14:27:21 +0100] "GET
/appli/notExistingPage HTTP/1.1" 302 -
199.99.99.99 - - [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
application.
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
F
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Cr�ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Dialoguez en direct avec vos amis gr�ce � Yahoo! Messenger !T�l�chargez Yahoo!
Messenger sur http://fr.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]