One thing that seemed to solve the problem was by commenting out the if statement check to ensure the passed in connection is of the javax.net.* kind in the configureHttpsHostVerifier method in class
Is there an easier way?
The connection type is determined by the https url provider. Under jdk1.4.2 I would expect this to be the newer javax.sql.* classes. The older classes are used when running with jdk1.3 and the jsse.jar extension classes. See if you can track down why the HttpURLConnection is returning a legacy version of the connection.
You're right, I had a slippery JAVA_OPT variable causing the VM to use the older version. Getting rid of that solved that problem...unfortunately, a similar problem is now occuring in org.jboss.mq.il.http.HTTPClient because it expects the com.sun.net implementation of HttpsURLConnection, and as a result, the ignoreHttpsHost flag isn't being checked.
I can always use your org.jboss.invocation.http.interfaces code to make HTTPClient a little more 1.4 friendly.
Thanks for your help.