javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sanjay_Patel
Posted On:   Friday, September 28, 2007 04:32 PM

I have a webservice which is hosted on sap xi server. My class in tomcat will call it over https protocol. For that, tomcat needs to import the xi certificate. I did it in cacerts which resides in jre's lib/security directory. Still, it doesn't work. But the strange thing is, if i write the stand alone class, and use the same cacerts file, it works. // For standalone class System.setProperty("javax.net.ssl.trustStore", "C:\certs\cacerts"); //For class which is in tomcat System.setProperty("javax.net.ssl.trustStore", ); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); I am getting the following   More>>

I have a webservice which is hosted on sap xi server. My class in tomcat will call it over https protocol. For that, tomcat needs to import the xi certificate. I did it in cacerts which resides in jre's lib/security directory. Still, it doesn't work. But the strange thing is, if i write the stand alone class, and use the same cacerts file, it works.



// For standalone class

System.setProperty("javax.net.ssl.trustStore", "C:\certs\cacerts");


//For class which is in tomcat

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

System.setProperty("javax.net.ssl.trustStorePassword", "changeit");



I am getting the following exception :


javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

org.apache.axis.client.Call.invokeEngine(Call.java:2784)

org.apache.axis.client.Call.invoke(Call.java:2767)

org.apache.axis.client.Call.invoke(Call.java:2443)

org.apache.axis.client.Call.invoke(Call.java:2366)

org.apache.axis.client.Call.invoke(Call.java:1812)

com.reliant.ws.xi.client.Os_getDocumentRequestBindingStub.os_getDocumentRequest(Os_getDocumentRequestBindingStub.java:164)

com.reliant.ws.xi.client.BillFetchClient.fetchContent(BillFetchClient.java:83)

org.apache.jsp.en_005fUS.EBillViewer.EBillWSCall_jsp._jspService(EBillWSCall_jsp.java:56)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

   <<Less

Re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

Posted By:   Sanjay_Patel  
Posted On:   Saturday, September 29, 2007 02:25 PM

can't anyone answer ? I am in a serious trouble. Please reply. Thank you
About | Sitemap | Contact