Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Problem Calling https web service

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Weblogic configuration was overriding whatever written in the code. Thats why I added the following Extra code which seems working.......

    Bookmark Topic Watch Topic
  • New Topic