Search code examples
webspherejax-wssaaj

CXF Webservice deployment IBM Websphere


I'm getting this error every time I try to deploy my web service client on WebSphere

SAAJ meta-factory com.ibm.ws.webservices.engine.soap.SAAJMetaFactoryImpl 
incompatible with javax.xml.soap.SAAJMetaFactory

It appears IBM is trying to provide an implementation from their JAXWS engine that isn't compatible. The SAAJMetaFactory is in the saaj-impl jar, which is in my class path, and since I am loading classes parent last, it should be the first one to get picked up. I've tried disabling the IBM JAXWS engine in the manifest file by adding this line:

DisableIBMJAXWSEngine: true

No luck. I even had the following JVM property added:

com.ibm.websphere.webservices.DisableIBMJAXWSEngine=true 

No luck. What else can I do? This has been plaguing me for weeks now.


Solution

  • I solved the problem by upgrading the solution to use Java 6. The Java 6 runtime has a SAAJ implementation in it. I no longer get the error I was getting. I had to upgrade to newever versions of Spring (4.0.5 RELEASE) and CXF (2.7.11) as well.