5 Replies Latest reply on Jul 16, 2008 9:39 AM by krenfro

    Can not find truststore url

      Hi,

      Just got first web service working but I get the following error:

      13:35:04,155 ERROR [HTTPClientInvoker] Error creating SSL Socket Factory for client invoker.
      java.io.IOException: Error initializing socket factory SSL context: Can not find truststore url.

      The service call still happens, but I guess this has something to do with SSL configuration on the server? given my url is: https://www.paymentexpress.com/WS/PXWS.asmx?WSDL

      Jboss: 4.2.2.GA
      JbossWS: 3.0.1-native-2.0.4.GA

      Any help appreciated

      Thanks

      Troy

        • 1. Re: Can not find truststore url
          mmoura

          I got the same error at the same platform an I still have no idea why its happening...
          I'm working on that right now.

          • 2. Re: Can not find truststore url
            asoldano

            This is not a ws issue, did you both properly configured the ssl/https connector in the jboss-web server.xml providing the trustore location?

            • 3. Re: Can not find truststore url
              jinglei

              I am seeing the same warn in the log file, Here is what I have the connector configured in the server.xml,

              <Connector SSLEnabled="true" address="${jboss.bind.address}" clientAuth="false" emptySessionPath="true" keystoreFile="${jboss.server.home.dir}/conf/local.keystore" keystorePass="123456" truststoreFile="${jboss.server.home.dir}/conf/local.keystore" maxHttpHeaderSize="8192" maxThreads="100" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS" strategy="ms"/>


              Thanks.

              • 4. Re: Can not find truststore url
                krenfro

                I am getting the same exception. Did anyone figure this out?

                JBoss 4.2.2
                JBossWS 3.0.1-native

                I created a keystore and added the ssl connector to server.xml in jboss-web.deployer as recommended, but I still get the error. The webservice IS actually invoked and, and everything appears to be working except the stack-dump.

                thanks.

                • 5. Re: Can not find truststore url
                  krenfro

                  Found my problem, I needed to pass the keystore location and password to jboss at startup

                  in run.conf

                  JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.keyStore=/opt/jboss/server/default/conf/server.keystore -Djavax.net.ssl.keyStorePassword=password"



                  this post was helpful
                  http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/transport.html


                  thanks.