[jboss-user] [JBoss Seam] - Newbie Problem with Exception handling and pages.xml
sheadley3228
do-not-reply at jboss.com
Mon Dec 17 14:46:20 EST 2007
I am new with seam and require a little bit of guidance. I am trying to handle application wide exceptions through the use of pages.xml and the <exception class> tags. If I forceably thow an exception in my application for testing purpose, with the following tag in my pages.xml:
<end-conversation/>
<redirect view-id="/views/admin/error.xhtml">
Database access failed
I get the following view which is incorrect:
500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
If I then use the following in my web.xml:
<error-page>
<error-code>500</error-code>
/views/admin/error.xhtml
</error-page>
I get the correct page displayed.
Why is this happenning? How could I maintain one place for all exceptions to be handled which allows all my exception messages to be shown?
My enviornment is OC4J, Seam, RichFaces.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113528#4113528
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113528
More information about the jboss-user
mailing list