[
https://issues.apache.org/jira/browse/CXF-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766804#action_12766804
]
Eric Velázquez commented on CXF-1459:
-------------------------------------
Don't know if its a too simplistic idea but what happen if you use a
SocketFactory class as a parameter type?
so instead of:
connection.getClass().getMethod("setSSLSocketFactory",
SSLSocketFactory.class);
use this:
connection.getClass().getMethod("setSSLSocketFactory",
SocketFactory.class);
Despite weblogic.security.SSL.SSLSocketFactory class doe not directly extends
from SSLSocketFactory indeed implements the expected SSLSocketFactory methods:
createSocket(Socket s, String host, int port, boolean autoClose);
getDefaultCipherSuites()
getSupportedCipherSuites()
And given SocketFactory is the parent of SSLSocketFactory should be secure to
use with any other implementation.
Would it be possible?
If not, i vote for the 1st option.
> ClassCastException occurs on HTTPS web service call made by app deployed to
> BEA WebLogic 9.2
> --------------------------------------------------------------------------------------------
>
> Key: CXF-1459
> URL: https://issues.apache.org/jira/browse/CXF-1459
> Project: CXF
> Issue Type: Improvement
> Components: Integration
> Affects Versions: 2.0.4
> Reporter: Tom Schroedl
> Assignee: Daniel Kulp
> Fix For: 2.2.4
>
> Attachments: HttpsURLConnectionFactory.patch
>
>
> HTTPS web service call fails from webapp deployed in ear file to BEA 9.2 with
> following error:
> java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection
> at
> org.apache.cxf.transport.https.HttpsURLConnectionFactory.createConnection(HttpsURLConnectionFactory.java:120)
> My weblogic-application.xml contains:
> <prefer-application-packages>
> <package-name>javax.jws.*</package-name>
> </prefer-application-packages>
> The secure web service call works in Tomcat 5.5.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.