Hi, I have already posted this on the Tomcat/Servlet forum, because I thought it was a Servlet problem, now I'm not so sure. I hope this is the correct forum.
Have a look to the following piece of code, please. It's a struts action, calling a method on a EJB, throwing a InvalidPasswordException: public ActionForward execute(...) throws Exception | { | //...... | ibsd.saveUserPassword(....); | //........ | catch (InvalidPasswordException ipe) | { | ipe.printStackTrace(); | } | catch (Exception e) | { | e.printStackTrace(); | } if I deploy the code into jboss version 4.0.0RC1 the exception is caught in the first catch, as expected. Deploying the SAME code into jboss version 4.0.2 leads to an unexpected result: the exception is caught in the secong block, while its stack trace tells it's an InvalidPasswordException: 2005-08-12 16:54:08,343 [http-0.0.0.0-8443-1] ERROR [ROM] com.xxx.web.utilities.InvalidPasswordException: Cannot change password, old password does not match with current password | at com.xxx.business.util.CurveUserHelper.saveUserPassword(UserHelper.java:523) | at com.xxx.business.ejbs.implementations.StarClientDataBean.saveUserPassword(StarClientDataBean.java:282) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | can someone tell me why this happens? thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889790#3889790 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889790 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user