Folks,

I'm tripping over a SAAJ version incompatibility when deploying a CXF 2.0.6 
servlet to WebSphere 6.1.0.7.

CXF obviously requires SAAJ 1.3, and uses methods such as 
SOAPFactory.createFault() that didn't exist in SAAJ 1.2, which unfortunately is 
the version that WebSphere natively supports.

So while things work on the happy path, once a fault rears its ugly head, I see 
a predictable NoSuchMethodError:

javax/xml/soap/SOAPFactory.createFault()Ljavax/xml/soap/SOAPFault;
  at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:186)
  ...

Now I know similar issues have been raised in the past, and some ideas kicked 
around like just copying the SAAJ 1.3 API & impl jars into the 
WebSphere/AppServer/java/jre/lib/endorsed dir. But IIRC these simple approaches 
didn't yield any joy.

So does anyone have a proven way to work around the SAAJ version 
incompatibility?

Thanks,
Eoghan 



Reply via email to