My application is running on Tomcat 7.
I've created a url rewrite filter that is listening on all incoming request, yet, when an error page is triggered, it doesn't filter it, instead it does filter the page on which the error occured.
I set up a breakpoint in the filter and when the error occurs, you can see it triggers on the source page.
But the displayed page is /desktop/index.xhtml
Is it the expected behavior ?
Here is my web.xml
configuration :
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<error-page>
<error-code>500</error-code>
<location>/desktop/index.xhtml?messageId=4</location>
</error-page>