0 Replies Latest reply on Oct 18, 2010 9:19 AM by Philipp Leusmann

    Cannot catch SOAPFaultException

    Philipp Leusmann Newbie



      in our client application, I cannot find a way to catch a javax.xml.ws.soap.SOAPFaultException.


      try {

           //Call to remote service

      } catch (javax.xml.ws.soap.SOAPFaultException e){

           //Never usis this branch

      } catch (Exception e){

      e.getClass() .getName(); // (equals "javax.xml.ws.soap.SOAPFaultException")

      e instanceof javax.xml.ws.soap.SOAPFaultException; // equals false



      It seems like the VM is comparing the incoming exception to javax.xml.ws.soap.SOAPFaultException coming with the JDK instead of using the version overridden by JBoss.


      Is there any way to make sure, the VM only "knows" the JBoss-Version? Or any other solution to this problem?