You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tapmik <mi...@gmail.com> on 2012/02/27 09:59:46 UTC

CXF + Websphere 7 not working

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.

Re: AW: CXF + Websphere 7 not working

Posted by tapmik <mi...@gmail.com>.
Hello,

I followed the guide

http://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-ForWebSphere6.1.0.29%2CV7andV8

and I had the setting:

DisableIBMJAXWSEngine

in the WAR package and now I added it also as a JVM property, but I'm
getting the same exception..

BR,

Mika

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518859.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: AW: CXF + Websphere 7 not working

Posted by Glen Mazza <gm...@talend.com>.
There's a *DisableIBMJAXWSEngine* setting I had to use to get Websphere 
to work:
http://www.jroller.com/gmazza/entry/deploying_webservices_on_websphere

HTH,
Glen

On 02/27/2012 06:52 AM, Mark Streit wrote:
> I don't know if this is of any value for the situation you are
> investigating but I posted a reply to another thread relating to "dealing"
> with Websphere 7 (which is never an easy task unless you remain chained to
> its embedded Axis2 stack).  As soon as you attempt to use alternate WS
> stacks like Metro or CXF, trouble starts.
>
> http://cxf.547215.n5.nabble.com/WSDLException-faultCode-CONFIGURATION-ERROR-org-apache-cxf-frontend-WSDLQueryException-td5513793.html#a5514521
>
>
> On Mon, Feb 27, 2012 at 6:20 AM, tapmik<mi...@gmail.com>  wrote:
>
>> Hello,
>>
>> I removed the saaj-api-1.3.4.jar from the WEB-INF\lib of the war and still
>> got the exception:
>>
>> Exception created : java.lang.LinkageError: loading constraint violation:
>> loader "com/ibm/ws/classloader/CompoundClassLoader@b100b1" previously
>> initiated loading for a different type with name
>> "org/w3c/dom/DOMConfiguration" defined by loader
>> "com/ibm/oti/vm/BootstrapClassLoader@3b543b54"
>>
>> BR,
>>
>> Mika
>>
>>
>> --
>> View this message in context:
>> http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518657.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>
> *Mark
> *
>


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza


Re: AW: CXF + Websphere 7 not working

Posted by Mark Streit <mc...@gmail.com>.
I don't know if this is of any value for the situation you are
investigating but I posted a reply to another thread relating to "dealing"
with Websphere 7 (which is never an easy task unless you remain chained to
its embedded Axis2 stack).  As soon as you attempt to use alternate WS
stacks like Metro or CXF, trouble starts.

http://cxf.547215.n5.nabble.com/WSDLException-faultCode-CONFIGURATION-ERROR-org-apache-cxf-frontend-WSDLQueryException-td5513793.html#a5514521


On Mon, Feb 27, 2012 at 6:20 AM, tapmik <mi...@gmail.com> wrote:

> Hello,
>
> I removed the saaj-api-1.3.4.jar from the WEB-INF\lib of the war and still
> got the exception:
>
> Exception created : java.lang.LinkageError: loading constraint violation:
> loader "com/ibm/ws/classloader/CompoundClassLoader@b100b1" previously
> initiated loading for a different type with name
> "org/w3c/dom/DOMConfiguration" defined by loader
> "com/ibm/oti/vm/BootstrapClassLoader@3b543b54"
>
> BR,
>
> Mika
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518657.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>


*Mark
*

Re: AW: CXF + Websphere 7 not working

Posted by tapmik <mi...@gmail.com>.
Hello,

I removed the saaj-api-1.3.4.jar from the WEB-INF\lib of the war and still
got the exception:

Exception created : java.lang.LinkageError: loading constraint violation:
loader "com/ibm/ws/classloader/CompoundClassLoader@b100b1" previously
initiated loading for a different type with name
"org/w3c/dom/DOMConfiguration" defined by loader
"com/ibm/oti/vm/BootstrapClassLoader@3b543b54"

BR,

Mika


--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518657.html
Sent from the cxf-user mailing list archive at Nabble.com.

AW: CXF + Websphere 7 not working

Posted by Oliver Wulff <ow...@talend.com>.
Please ensure not to deploy the saaj api.

Thanks



------

Oliver Wulff

http://owulff.blogspot.com
Solution Architect
Talend Application Integration Division http://www.talend.com

________________________________________
Von: tapmik [mika.tapanainen@gmail.com]
Gesendet: Montag, 27. Februar 2012 11:29
Bis: users@cxf.apache.org
Betreff: Re: CXF + Websphere 7 not working

Hello,

I tried this and get:

Exception created : java.lang.LinkageError: loading constraint violation:
loader "com/ibm/ws/classloader/CompoundClassLoader@65806580" previously
initiated loading for a different type with name
"org/w3c/dom/DOMConfiguration" defined by loader
"com/ibm/oti/vm/BootstrapClassLoader@3b543b54"

I attached the files, which are contained in the folder WEB-INF\lib of my
war.

http://cxf.547215.n5.nabble.com/file/n5518509/files.txt files.txt

BR,

Mika

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518509.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF + Websphere 7 not working

Posted by tapmik <mi...@gmail.com>.
Hello,

I tried this and get:

Exception created : java.lang.LinkageError: loading constraint violation:
loader "com/ibm/ws/classloader/CompoundClassLoader@65806580" previously
initiated loading for a different type with name
"org/w3c/dom/DOMConfiguration" defined by loader
"com/ibm/oti/vm/BootstrapClassLoader@3b543b54"

I attached the files, which are contained in the folder WEB-INF\lib of my
war.

http://cxf.547215.n5.nabble.com/file/n5518509/files.txt files.txt 

BR,

Mika

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Websphere-7-not-working-tp5518335p5518509.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF + Websphere 7 not working

Posted by Freeman Fang <fr...@gmail.com>.
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:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com