JBoss Community

Cannot catch SOAPFaultException

created by Philipp Leusmann in JBoss Web Services - View the full discussion

Hi,

 

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?

 

Regrads,

Philipp

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community