Help! ClassCastException with Tomcat and HttpsUrlConnectionOldImpl

Hi,

I am trying to perform an HTTPS call from a servlet running under Tomcat 5.5, JDK 1.5.0 . When I do, I get this error:

java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl

at rcopia.util.WebUtils.setAutoVerify(WebUtils.java:1398)

at rcopia.util.WebUtils.getURLConnection(WebUtils.java:1377)

(etc).

I have included

System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");

but it doesn't seem to help. How can I get Tomcat to use the new javax.net JSSE rather than the old com.sun.net... packages it is rying to use?

Please help!

Brandon

[665 byte] By [brylawskia] at [2007-11-27 11:00:12]
# 1

> System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");

Don't do that. It's for JDK 1.3 and the JSSE extension.

ejpa at 2007-7-29 12:28:08 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2

I removed all references to this and it still fails. Does anyone have any other ideas to try?

Thanks,

B

brylawskia at 2007-7-29 12:28:08 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...