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

