It's not a secret anymore!
The moose likes Web Services and the fly likes Problem  Calling https web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem  Calling https web service" Watch "Problem  Calling https web service" New topic

Problem Calling https web service

john Mat

Joined: Sep 18, 2008
Posts: 4
I have a https webservice running in weblogic 9.2. While calling that I am getting <BEA-090477> <Certificate chain received from - was not trusted causing SSL handshake failure.>

But when I write a standalone program with main() in my local machine and call the webservice its working fine !!. But when I write a client using the same code and put it inside a .war file and deploy in weblogic 9.2 server and then call,... it is giving the error.

This is what I did.
1. I generated the client using ""
1. downloaded the .der file from firefox after I accessed the wsld( and created the keystore by keytool -import -alias servercert -file server.der -keystore server.keystore.
2. added in client code
System.setProperty("","password"); and then called the webservice.

Funny thing is that with the same code if I write a stand alone client with public static void main() it is able to call the webservice properly . But if I write the same code and package it in .war file and deploy in WLS 9.2 it is giving the above mentioned error. Another thing even though I set "" with the absolute path of server.keystore file,while I print the values in jvm, it never shows up. but all other values are properly shown. is this the problem of local and weblogic JVMs ?
Could any one help . please ... it is urgent !!
[ November 01, 2008: Message edited by: Bear Bibeault ]
john Mat

Joined: Sep 18, 2008
Posts: 4
I think Weblogic configuration was overriding whatever written in the code. Thats why I added the following Extra code which seems working.......

I agree. Here's the link:
subject: Problem Calling https web service
jQuery in Action, 3rd edition