2 Replies Latest reply on Jul 3, 2005 8:46 PM by hau

    why does the container wrap NestedError around an applicatio

    hau

      I have a stateless session bean with a method that may throw application exceptions. i also have a cactus test to test the throwing of application exception. when the application's thrown, it's wrapped in a NestedError, so that the catch (applicationException e) block fails to catch it.

      when i look at rethrow(Exception e) method of org.jboss.ejb.Container, it only wraps an exception inside a NestedError when the exception is an instance of InvocationTargetException. but my application exception is not...or not that i know of. how do i make the container throw the application exception instead of InvocationTargetException?