-
1. Re: using error-page in web.xml for custom error page
asafz Sep 29, 2009 2:41 PM (in response to asafz)Just wanted to add that when mapping 404 errors to custom disaply page it works just fine:
<error-page>
<error-code>404</error-code>
/pages/error.html
</error-page>
so it looks like there is some special problem with 500 errors...
any ideas? -
2. Re: using error-page in web.xml for custom error page
asafz Oct 1, 2009 4:20 AM (in response to asafz)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??? -
3. Re: using error-page in web.xml for custom error page
erasmomarciano Oct 1, 2009 5:54 AM (in response to asafz)try
<error-page>
<error-code>404</error-code>
/error404.jsp
</error-page>
<error-page>
<error-code>500</error-code>
/error500.jsp
</error-page> -
4. Re: using error-page in web.xml for custom error page
erasmomarciano Oct 1, 2009 5:56 AM (in response to asafz)
ops<error-page> <error-code>404</error-code> <location>/error404.jsp</location> </error-page>
Are you sure of to make an error 404? -
5. Re: using error-page in web.xml for custom error page
asafz Oct 1, 2009 6:45 AM (in response to asafz)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.