Skip to content
Advertisement

weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

I am getting “java.lang.ClassCastException” while trying to connect to a url using javax.net.ssl.HttpsURLConnection .

I am using Weblogic Server 10.3.4.

JavaScript

The exception which i am getting is :

JavaScript

Any possible reason of getting this error ?

Advertisement

Answer

I got the solution finally. If we are using Weblogic server, we must define:

set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true

…in the class path inside the Server Domain.

This will tell the weblogic server to use the Sun Http Handlers and not install its own.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement