The test case works fine with my IBM JDK:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20080710a
(SR8)
)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
j9vmwi3223-2008071
0 (JIT enabled)
J9VM - 20080625_20583_lHdSMr
JIT - 20080620_1845_r8
GC - 200806_19)
JCL - 20080710
Do you have com.ibm.websphere.ssl.protocol.SSLSocketFactory on the classpath
(from JDK)? If not, maybe the security configuration file is messed up?
Can you dump out the following system properties to see what's happening?
Security.setProperty("ssl.SocketFactory.provider",
"com.ibm.jsse2.SSLSocketFactoryImpl");
Security.setProperty("ssl.ServerSocketFactory.provider",
"com.ibm.jsse2.SSLServerSocketFactoryImpl");
Thanks,
Raymond
From: Scott Kurz
Sent: Monday, September 08, 2008 9:02 AM
To: [email protected]
Subject: build problem : java.lang.ClassNotFoundException:
com.ibm.websphere.ssl.protocol.SSLSocketFactory
Does anyone know what this problem could be?
testRegisterServletMappingSSL(org.apache.tuscany.sca.http.jetty.JettyServerTestCase)
Time elapsed: 1.407 sec <<< ERROR!
java.net.SocketException: Cannot find the specified class
java.security.PrivilegedActionException: java.lang.ClassNotFoundException:
com.ibm.websphere.ssl.protocol.SSLSocketFactory
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:8)
at com.ibm.net.ssl.www2.protocol.https.b.afterConnect(b.java:91)
at com.ibm.net.ssl.www2.protocol.https.c.connect(c.java:15)
at com.ibm.net.ssl.www2.protocol.https.a.connect(a.java:75)
at
org.apache.tuscany.sca.http.jetty.JettyServerTestCase.testRegisterServletMappingSSL(JettyServerTestCase.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
My JDK:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20070608
(SR5+IY99712))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20070426
(JIT enabled)
J9VM - 20070420_12448_lHdSMR
JIT - 20070419_1806_r8
GC - 200704_19)
JCL - 20070608
Thanks,
Scott