Hi,
I want make an HTTPS connection from JBoss:
| // build url and connection
| URL url = null;
| try {
| url = new URL(mmsURL);
| }
| catch (MalformedURLException murle) {
| logger.fatal("sendMMS() failed build url to mmsURL=" + mmsURL,
murle);
| throw new OMAException("MMS::sendMMS() failed build url to
mmsURL=" + mmsURL, murle, ErrorIDs.FATAL_ERROR);
| }
|
| // open connection
| javax.net.ssl.HttpsURLConnection conn = null;
| try {
| conn = (javax.net.ssl.HttpsURLConnection) url.openConnection();
| conn.setSSLSocketFactory(ctx.getSocketFactory());
| }
| catch (IOException ioe) {
| logger.fatal("sendMMS() open connection failed to mmsURL=" +
mmsURL, ioe);
| throw new OMAException("MMS::sendMMS() open connection failed
to mmsURL=" + mmsURL, ioe, ErrorIDs.FATAL_ERROR);
| }
|
But I get an ClassCastException while url.openConnection() an
| com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
|
What cann I do?
Regards,
Rafal
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868386#3868386
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868386
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user