either implement Oracle's SSLSocketFactory 
ORIBM SSLSocketFactory but NOT both as the 2 classes are incompatible
i would suggest disable 
isUseIBMSSLSocketFactoryvix:\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settingsisUseIBMSSLSocketFactory=false
http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=%2Fcom.ibm.ws.ast.st.v6.ui.doc%2Ftopics%2Frssl_isUseIBMSSLSocketFactory.html
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
 From: shebi....@gmail.com
Date: Sat, 8 Dec 2012 19:50:23 +0400
Subject: error calling SSL Service from axis2 client in websphere 6.1
To: java-dev@axis.apache.org

Hi all,I experiencing issue where my axis2 based client call the ssl service 
from websphere 6.1 and throws the following exception along with the message at 
the top. I have followed the step from Link: 
http://www.ibm.com/developerworks/wikis/download/attachments/116424904/basic_ssl_cert_exchange_1109.pdf?version=1
 to install the ssl certificate in default trust store. 



setting up default SSLSocketFactory
class com.ibm.websphere.ssl.protocol.SSLSocketFactory is loaded
SSLSocketFactory instantiation failed: java.lang.ClassCastException: 
com.ibm.websphere.ssl.protocol.SSLSocketFactory incompatible with 
javax.net.ssl.SSLSocketFactory
{HttpMethodDirector:439} - I/O exception (java.net.SocketException) caught when 
processing request: java.lang.ClassCastException: 
com.ibm.websphere.ssl.protocol.SSLSocketFactory incompatible with 
javax.net.ssl.SSLSocketFactory
{HttpMethodDirector:445} - Retrying request
{HttpMethodDirector:439} - I/O exception (java.net.SocketException) caught when 
processing request: java.lang.ClassCastException: 
com.ibm.websphere.ssl.protocol.SSLSocketFactory incompatible with 
javax.net.ssl.SSLSocketFactory
{HttpMethodDirector:445} - Retrying request
{HttpMethodDirector:439} - I/O exception (java.net.SocketException) caught when 
processing request: java.lang.ClassCastException: 
com.ibm.websphere.ssl.protocol.SSLSocketFactory incompatible with 
javax.net.ssl.SSLSocketFactory
{HttpMethodDirector:445} - Retrying request
{HTTPSender:202} - Unable to sendViaPost to 
url[https://sma/CBDSMS/api/GetDue.svc]
java.net.SocketException: java.lang.ClassCastException: 
com.ibm.websphere.ssl.protocol.SSLSocketFactory incompatible with 
javax.net.ssl.SSLSocketFactory
        at javax.net.ssl.DefaultSSLSocketFactory.throwException(Unknown Source)
        at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at 
org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:116)
        at 
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
        at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
        at 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
        at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
        at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
        at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:438)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
-- 
Thanks & Regards,

Syed Shahbaz Ali


Disclaimer
“The information contained in this email is confidential and may contain 
proprietary information. It is meant solely for the intended recipient. Access 
to this email by anyone else is unauthorized. If you are not the intended 
recipients, any disclosure, copying, distribution or any action taken or 
omitted in reliance on this, is prohibited and may be unlawful. No liability or 
responsibility is accepted if information or data is, for whatever reason 
corrupted or does not reach its intended recipient. No warranty is given that 
this email is free of viruses.”




                                          

Reply via email to