[ 
https://issues.apache.org/jira/browse/CXF-1459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765877#action_12765877
 ] 

Eric Velázquez commented on CXF-1459:
-------------------------------------

Still does not works for me.

Using cxf 2.2.4 and weblogic 9.2 fixed the classcastexception problem but a new 
NoSuchMethodError appears.

Caused by: java.lang.IllegalArgumentException: Error decorating connection 
class weblogic.net.http.SOAPHttpsURLConnection
        at 
org.apache.cxf.transport.https.HttpsURLConnectionFactory.decorateWithTLS(HttpsURLConnectionFactory.java:259)
        at 
org.apache.cxf.transport.https.HttpsURLConnectionFactory.createConnection(HttpsURLConnectionFactory.java:136)
        ... 33 more
Caused by: java.lang.NoSuchMethodException: 
weblogic.net.http.SOAPHttpsURLConnection.setSSLSocketFactory(javax.net.ssl.SSLSocketFactory)
        at java.lang.Class.getMethod(Class.java:1585)
        at 
org.apache.cxf.transport.https.HttpsURLConnectionFactory.decorateWithTLS(HttpsURLConnectionFactory.java:254)

on this line:

                Method setSSLSocketFactory = 
connection.getClass().getMethod("setSSLSocketFactory", 
                                                                             
SSLSocketFactory.class);

The weblogic's SOAPHttpsURLConnection has the setSSLSocketFactory method but 
receives a weblogic.security.SSL.SSLSocketFactory object as a parameter and 
this SSLSocketFactory  class from weblogic extends from javax.net.SocketFactory 
and not the expected javax.net.ssl.SSLSocketFactory which leads to the 
NoSuchMethodError.

Any ideas?

Should this issue be reopened? or may be a new one?

> 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.

Reply via email to