axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timour M <mtim...@gmail.com>
Subject Re: Axis on Websphere - ClassCastException com.ibm.ws.webservices.engine.Message
Date Wed, 13 Apr 2005 18:34:16 GMT
Thanks for your reply Dhananjay. 

I tried you recommendation and the only option it required is "c" (put 
saaj.jar -> java\jre\ext). But I worried that it may have consequences for 
other apps running in the same container, since it effects the whole server. 


Best regards,
Timour

On 4/12/05, ragade@globalsight.com <ragade@globalsight.com> wrote:
> 
> I was finally able to get our app running successfully with Apache Axis (
> 1.2RC3) in WebSphere 5.1.0 using the PARENT LAST classloading and 
> xerces1.4.4
>  
> These were the things I found to be necessary:
> 
> a) load all axis related jars through the EAR classloader and not 
> web-inf/lib classloader. It seems WebSphere sometimes has conflicts with 
> dependent classes coming throught the web app classloader. 
> 
> b) edit the WebSphere\AppServer\java\jre\lib\xerces.properties and 
> jaxp.properties. Uncomment
> 
> the lines at the bottom of both files
> 
> c) load the Apache Axis version of saaj.jar from java/jre/lib/ext
> 
> d) clean all third party jars loaded through your EAR classloader (or 
> web-inf/lib classloader) of any javax.* and org.wc3.* SAX and DOM classes 
> that may conflict (the xerces1.4.4.jar needs to be cleaned of this.) 
> 
> I think for what you describe, you may only need to do steps a, c, and d 
> and use PARENT_LAST
> 
> -Dhananjay
> 
> -----Original Message-----
> *From:* Timour M [mailto:mtimour@gmail.com]
> *Sent:* Tuesday, April 12, 2005 11:53 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Axis on Websphere - ClassCastException 
> com.ibm.ws.webservices.engine.Message
> 
> Hello, 
> 
> I have a webservice running within axis 1.1 container on Websphere 5.1. In 
> the JAX-RPC handler (handleRequest) I'm doing transformation SOAP -> XML -> 
> SOAP and then setting the result soap message on message context. The last 
> operation fails with this error : "java.lang.ClassCastException: 
> com.ibm.ws.webservices.engine.Message"
> 
> Obviously the result of transformation (SOAP -> XML -> SOAP) is websphere 
> implementation of soap message but handler's message context is an Axis 
> implementation. Is there a way to solution for this problem ? 
> 
> I tried to "PARENT_LAST" option and it did not fix the problem. 
> 
> Best regards,
> Timour
> 
>

Mime
View raw message