Interesting. I also just switch to RC1. I though I was having a glassfish issue.
Well, here is a dirty hack that you can use to workaround if you are using WebServiceTemplate. Change WST.hasFault(..)
from:
Code:
private boolean hasFault(WebServiceConnection connection, WebServiceMessage response) throws IOException {
if (connection instanceof FaultAwareWebServiceConnection) {
return ((FaultAwareWebServiceConnection) connection).hasFault();
}
else {
return response.hasFault();
}
}
to:
Code:
private boolean hasFault(WebServiceConnection connection, WebServiceMessage response) throws IOException {
if (connection instanceof FaultAwareWebServiceConnection) {
return ((FaultAwareWebServiceConnection) connection).hasFault() || response.hasFault();
}
else {
return response.hasFault();
}
}
You can't sublcass because hasFault is private. And @Aspect does not support privileged aspects. So the only real solution is to either mod the class and rebuild spring-ws, or, what I do, is add the modified class into my project keeping the spring package and ensure that my classes are ordered prior to spring-ws.
Arjen, is this a known issue in spring-ws rc1? Not really a problem with spring-ws but really elsewhere? I couldn't find a related jira issue, but I'm off to sail down the Chesapeake for a long weekend so I won't be filing one till Tuesday.
cheers!!