script fails when run under WebSphere with SSL enabled

Hello,

I am trying to run a script to import data into an application. In a non-https was deployment the script works fine. When I try to run it in an https-enabled was deployment it fails with the following error:

[java] java.net.SocketException: java.lang.ClassNotFoundException:
Cannot find the specified class
com.ibm.websphere.ssl.protocol.SSLSocketFactory
[java] at
javax.net.ssl.DefaultSSLSocketFactory.a(SSLSocketFactory.java:10)
[java] at
javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:5)
[java] at
com.ibm.net.ssl.www2.protocol.https.c.createSocket(c.java:192)
[java] at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
[java] at
sun.net.www.http.HttpClient.openServer(HttpClient.java:462)
[java] at
sun.net.www.http.HttpClient.openServer(HttpClient.java:557)
[java] at com.ibm.net.ssl.www2.protocol.https.c.<init>(c.java:26)
[java] at com.ibm.net.ssl.www2.protocol.https.c.a(c.java:105)
[java] at
com.ibm.net.ssl.www2.protocol.https.d.getNewHttpClient(d.java:49)
[java] at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:946)
[java] at
com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:32)
[java] at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
[java] at
com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:33)
[java] at java.net.URL.openStream(URL.java:1050)
[java] at
com.gtnet.services.batchStarter.BatchStarterConnector.getResults(BatchStarterConnector.java:21)
[java] at
com.gtnet.services.batchStarter.BatchStarter.runProcessAndGetResults(BatchStarter.java:61)
[java] at
com.gtnet.services.batchStarter.BatchStarter.exec(BatchStarter.java:50)
[java] at
com.gtnet.services.batchStarter.SecureBatchStarter.main(SecureBatchStarter.java:13)
[java] Caused by: java.lang.ClassNotFoundException: Cannot find the
specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory
[java] at javax.net.ssl.SSLJsseUtil.b(SSLJsseUtil.java:123)
[java] at
javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:37)
[java] at
javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:20)
[java] at
javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:12)
[java] at com.ibm.net.ssl.www2.protocol.https.b.<init>(b.java:10)
[java] at
com.ibm.net.ssl.www2.protocol.https.Handler.openConnection(Handler.java:11)
[java] at
com.ibm.net.ssl.www2.protocol.https.Handler.openConnection(Handler.java:3)
[java] at java.net.URL.openConnection(URL.java:984)

The deployment is WAS 8.5 running on AIX against was jdk 1.7

I think the cause of the issue is that there are jar files that are not being included in the classpath by default. I am trying to determine the best method to have them included. Does it make more sense to have them specified in the classpath field in the was appserver that is supporting the application or is there a solution that makes more sense?
corganoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AdminRAMCommented:
Add SSL related jar files to CLASSPATH system variable. Following is the jar com.ibm.ws.security.crypto.jar; should be added to CLASSPATH system
Make sure Java.security file uncomment the following socket factory
#ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
#ssl.ServerSocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLServerSocketFactory

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSL / HTTPS

From novice to tech pro — start learning today.