0

I am migrating my application from ibm jdk 1.6+geronimo server to oracle jdk1.7+jboss.

I have a working version of jks configuration in previous version which is not working in new configuration.

I am loading jks file like:

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

But this is not working. I am getting below error:

Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)

    at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)

    at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)

    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:88)

I verified the path of jks is correct. Do I need to create new jks depending on new jdk?

please help.

4

1 回答 1

0

我解决了这个问题..

因为我们从 API 中获取了 jks 的路径,它返回了带有 file: 协议的路径,因为 jboss 不支持这个 jks 没有被加载。我修改了字符串以删除“文件:”,现在工作正常。

于 2014-02-14T06:54:09.223 回答