java.security.cert.CertificateException: Could not find trusted certificate

I am having a cer file of webservice say https://domainname/

I have created keystore using this cer file by executing

keytool -iomport -alias <aliasname> -file <certificate_filename> -keystore <keystore_filename>

Thereafter,I have created the servlet to get the connection to webservice URL.The code is

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

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

System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");

System.setProperty("javax.net.ssl.trustStore", "keystore_filename");

System.setProperty"javax.net.ssl.trustStorePassword","keystore_password");

Thereafter I tries to execute the webservice menthod by calling the https URL.But I get the error--

{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted certificate

I am using Apache Axis to connect to webservice.

Please help me to resove this problem.Quick help will be appreciated.

[1140 byte] By [HelpBOSSa] at [2007-10-3 11:52:59]
# 1

> System.setProperty("javax.net.ssl.trustStore", "keystore_filename");

An InputStream is opened to read your keystore_filename. It expects an absolute path. Yes I know its a pain, but so it is. And if you have spaces in keystore_filename, you will get the same error! So, no spaces and absolute path will do the trick.

vineetChaturvedia at 2007-7-15 14:27:19 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...