users@glassfish.java.net

declarative exception handling

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Feb 2008 05:34:33 PST

Hi
How to handle exceptions declaratively in ejb3? I am aware of
 <error-page>
        <exception-type>java.lang.NoSuchMethodError</exception-type>
        <location>/error.jsp</location>
    </error-page>
tags in web.xml. but am not sure how to use it. Should the exceptions be listed in hierarchy? I tried using the above code in my web.xml,but it shows me http 500 error. but when not handled, it lists the exceptions in the browser.
so can anyone pl guide me how to go about.
Thanks
[Message sent by forum member 'anjana83' (anjana83)]

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