users@glassfish.java.net

Howto use <error-page> in web.xml handling javax.ejb.EJBException

From: <glassfish_at_javadesktop.org>
Date: Fri, 19 Oct 2007 16:55:06 PDT

I have a problem with EJB, which method is invoked by JSF in prerender(). The EJB's method return the system exception javax.ejb.EJBException, and I want to redirect to error page, that informs user about sytuation. Error page should be JSP or JSF. What is the solution of this problem - howto define error page for javax.ejb.EJBExcpetion, because standard error page (http code 500) is not accepted.

I have tried <error-page> directive (with exception or error code 500) in web.xml, but this not working. Always is the same standard error page.
[Message sent by forum member 'msmolinski' (msmolinski)]

http://forums.java.net/jive/thread.jspa?messageID=241318