On 20/08/2009 20:51, llg wrote:
Le 20/08/09 21:25, André Warnier a écrit :
llg wrote:
...
I added in ${CATALINA_HOME}/conf/web.xml
<error-page>
<error-code>404</error-code>
<location>/my404.html</location>
<error-code>503</error-code>
<location>/my503.html</location>
</error-page>
I do not really *know* this, but based on the XML structure of other
Tomcat config files, the above form looks fishy to me.
Should it not at least be something like
Yes, of course, you are right : just a stupid copy/paste in the mail :-[
This config would try to reference a file of that URL in *each* webapp.
If Tomcat is holding onto URL namespaces when an given webapp is
stopped, then you'll get the default error page you're seeing, because
the app is stopped - so the file is unavailable.
Using a custom ErrorReportValve as previously suggested is the only way
to get generate the behaviour you're aiming for, because Valves operate
at a level below the webapp - thus a stopped webapp is no impediment.
p
But the result is the same
> <error-page>
> <error-code>404</error-code>
> <location>/my404.html</location>
> </error-page>
> <error-page>
> <error-code>503</error-code>
> <location>/my503.html</location>
> </error-page>
?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org