Hi,
IIRC when last time we help our customer to deploy CXF related
components into Websphere, the key point is use servicemix saaj-impl
bundle[1] but not the normal saaj-impl jar.
[1]http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1/
Freeman
On 2012-2-27, at 下午4:59, tapmik wrote:
Hello,
I followed the guide
http://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-ForWebSphere6.1.0.29%2CV7andV8
and the CXF2.5.2 is working in the simple cases, but when I use the
JAX-WS
handlers I got the exception:
java.lang.ClassNotFoundException:
com.sun.org.apache.xerces.internal.dom.DocumentImpl
This is because the IBM Java implementation doesn't contain the class
com.sun.org.apache.xerces.internal.dom.DocumentImpl. The SAAJ jars
saaj-api-1.3.4.jar and saaj-impl-1.3.12.jar are fixed to use the class
com.sun.org.apache.xerces.internal.dom.DocumentImpl.
I even tried to use the Websphere internal implementation of the SAAJ
org.apache.cxf.binding.soap.messageFactoryClassName=
com.sun.xml.internal.messaging.saaj.soap.MessageFactoryImpl
org.apache.cxf.binding.soap.soapFactoryClassName=
com.sun.xml.internal.messaging.saaj.soap.ver1_2.SOAPFactory1_2Impl
but I got
java.lang.ClassCastException: Cannot cast class
com.sun.xml.internal.messaging.saaj.soap.MessageFactoryImpl to class
javax.xml.soap.MessageFactory
I think using of the internal classes is not good solution..
Do you know how to get the CXF working with the Websphere 7? I have
read
this discussion forum and multiple web pages, but not found the
solution.
BR,
Mika
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518335.html
Sent from the cxf-user mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com