Just wanted to add that when mapping 404 errors to custom disaply page it works just fine:
so it looks like there is some special problem with 500 errors...
Still no answers so I will add more information:
1. I'm using jboss 5.0.1 and 5.1 and see the same problem
2. I'm throwing RuntimeException from the application
3. even when using exception-type instead of error-type and setting it to Exception I still can not reach to my custom error page.
Again, any ideas???
<error-page> <error-code>404</error-code> <location>/error404.jsp</location> </error-page>
Are you sure of to make an error 404?
Well 404 is working for me, I just enter none exist URL and I do see my custom error page,
But when I try to create 500 error to see my custom error page I still see Jboss default error page and not my custom page.
I'm doing it by throwing runtimexception from my EJB tier.
Just wanted to add that I'm using EJB3, JSF, richfaces.
I'm sure that this is not related to my problem but just wanted to add this extra information.