RE: Please Help!!!! Urgent!!!

"remi " <[email protected]> Wed, 9 Jun 2004 08:42:36 +0800
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <002101c44dba$ac0e2340$2001a8c0@phileppe>
Hi srini.
 
I think I have seen something like this before. Usually when you are
connecting your java programme to a https server, you need to store the
keystore of the site at your site. This is very similar to the scenario
when you are entering a https site from your browser. You will be asked
to store the certificate at your browser. I have gone thru this problem
while developing a webservices application for a client. 
 
I think this link
http://www-106.ibm.com/developerworks/webservices/library/ws-sec1.html
will help you to solve the problem. All the best.
 
Remi
 
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of srini
Sent: Tuesday, June 08, 2004 4:02 AM
To: [email protected]
Subject: [redhat-ccm-list] Please Help!!!! Urgent!!!
 
Hi All,
        Our application runs on ccm 5.2 and I am using the new
httpclient (version 2.0) API from 
apache to manage http connections to external servers. With plain http,
it works just fine.
However if connecting to a https server, it fails with the following
exception:
 
 
java.lang.NoClassDefFoundError: sun/security/validator/KeyStores
        at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.<init>(DashoA6275)
        at
com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl$SimpleFactory.a(Das
hoA6275)
        at
com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl.engineInit(DashoA62
75)
        at javax.net.ssl.TrustManagerFactory.init(DashoA6275)
        at com.sun.net.ssl.internal.ssl.SSLContextImpl.e(DashoA6275)
        at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(DashoA6275)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java(Compiled Code))
        at javax.net.ssl.SSLSocketFactory.getDefault(DashoA6275)
        at
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSo
cket(SSLProtocolSocketFactory.java:125)
        at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:68
3)
        at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
nectionAdapter.open(MultiThreadedHttpConnectionManager.java:1048)
 
 
It is looking for /security/validator/KeyStores class, which is NOT
included with the IBM JRE. Is there a workaround for this one. Please 
advise. We are just about to release our product and need to fix it
ASAP. Thanks for your time.
 
 
Regards
Srini

-- 
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/