0 Replies Latest reply on Nov 3, 2004 12:38 PM by crazypalm

    Default SSL context init failed: null - JBoss3.2.3

    crazypalm Newbie

      Hi, I am trying to send SOAP request through SSL, but I get

      ERROR [STDERR] (Thread-202:) javax.xml.soap.SOAPException: java.net.SocketException: Default SSL context init failed: null
      2004-11-03 16:33:44,288 85448378 ERROR [STDERR] (Thread-202:) at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:110)

      Here is my codes to set the SystemProperty,

      System.setProperty("javax.net.ssl.trustStore","/home/ganglu/stores/truststore/cacerts");
      System.setProperty("javax.net.ssl.keyStore", "/home/ganglu/stores/client.keystore");
      System.setProperty("javax.net.ssl.keyStoreType", "jks");
      System.setProperty("javax.net.ssl.keyStorePassword", "dialogue");
      System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");
      Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

      It is working outside Jboss. Anybody got idea?

      Thanks in advance.