This is a discussion on Weblogic and SSL within the Java forums, part of the Programming Talk category; Hi, I'm new to weblogic, but have some experience in Java. I'm trying to connect an outside server, ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Weblogic and SSL
Hi,
I'm new to weblogic, but have some experience in Java. I'm trying to connect an outside server, but I keep getting the following error in my server console: javax.net.ssl.SSLHandsShakeException: sun.sercurity.validator.ValidatorException: No trusted certificate found Following is the java code (the very last line is where the error occurs): String trustStoreFilename = new String("D:\\b6_baseline\\h\\JemSuite\\JEMWTH\\lib\\jem_trust\\jem.truststore"); File trustStoreFile = new File(trustStoreFilename); System.setProperty("javax.net.ssl.trustStore", trustStoreFile.getAbsolutePath()); try { //Create the SOAP connection JMBLWebServiceLocator locator = new JMBLWebServiceLocator(); JMBLServiceSoapPortType soapJMBL = locator.getJMBLServiceSoap(); // create the forecast request Request forecastRequest = new Request(); forecastRequest = createRequest(0); RequestList forecastRequestList = new RequestList(); forecastRequestList.setRequest(new Request[] {forecastRequest}); ResponseList forecastResponseList = new ResponseList(); try{ forecastResponseList = soapJMBL.getMETOCRequest(forecastRequestList); |