Details
Description
I have webdefault.xml defined to include an error-page, like this:
<error-page>
<location>/error</location>
</error-page>
I have also tried this:
<error-page>
<error-code>500</error-code>
<location>/error</location>
</error-page>
and this:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error</location>
</error-page>
In all three cases, the exception stack trace is displayed in all its beauty, but not exactly what I'm looking for.
Nils,
I have the following in $JETTY_HOME/etc/webdefaults.xml:
I've made sure my webapp is using the $JETTY-HOME/etc/webdefaults.xml file (which it won't do by default - it will use the one inside jetty-webapp.jar).
Then if hit the following jsp, it generates an error 500 and I see the contents of booboo.html on the browser:
After you've double-checked that you're using the correct webdefault.xml file and the problem still exists, please reply with the way you're trying to generate the error. Is it via a dispatch, for example?
thanks
Jan