1 Reply Latest reply on Sep 13, 2005 3:47 AM by Henrik Johansson

    exception conversion to javax.servlet.ServletException

    Tremal Naik Newbie

      Hi folks, I have recently upgraded from jboss 4.0.0RC1 to 4.0.2 and I noticed a strange (well, strange for me) behaviour in exception handling.

      please have a look at the following code, it's a struts action:

      public ActionForward execute(....)
      catch (InvalidPasswordException ipe)
      }catch(Exception e)

      ibsd.saveUserPassword() throws an InvalidPasswordException, the same code deployed in 4.0.0RC1 is caught in the first bock, in 4.0.2 is caught in the second block, appearing now as a javax.servlet.ServletException.

      Is this a correct behaviour? Is there something in configuration I have missed?