Hi,

 

I am trying to connect to a jsp file deployed on weblogic server (ver
7.0 SP5).

 

When I connect to the jsp using the standard http protocol, it works
fine.

I use following syntax to connect to http.....

----

HttpClient client = new HttpClient();

GetMethod method = new GetMethod("http://2b2f2288-san:7001/index.jsp";);

-----

But, when I replace this line of code with following lines...

--------

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");

HttpClient client = new HttpClient();

GetMethod method = new GetMethod("https://2b2f2288-san:7002/index.jsp";);

--------

 

I get following exception.

-----------------------

java.io.IOException: Write Channel Closed, possible SSL handshaking or
trust failure

        at com.certicom.tls.record.WriteHandler.write(Unknown Source)

        at
com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown
Source)

        at
com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown
Source)

-----------------------

 

I have also added the weblogic certificate files i.e. democert.pem and
demo.crt to cacerts (keystore) using keytool utility.

 

I could not get help on this problem on web.

 

Would appreciate any response.

 

-sandeep

 

___________________________________________________

Sandeep Belekar | Architect - Integration Practice | M P H A S I S
Architecting Value | IT SERVICES| 
139/1, Hosur road, Koramangala, Bangalore - 560 095 | Tel: (080) 2552
2713/14 | Mobile: 98452 88574 | www.mphasis.com
<file:///C:\Documents%20and%20Settings\sandeep.belekar\Application%20Dat
a\Microsoft\Signatures\www.mphasis.com> 

 

Reply via email to