wsdl2java-警告:无法初始化默认密钥管理器 [英] wsdl2java - WARNING: Default key managers cannot be initialized

查看:286
本文介绍了wsdl2java-警告:无法初始化默认密钥管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在生成Java WSDL客户端时,我收到这些错误。您能帮我理解这些吗?

While generating java WSDL client I am receiving these errors. Can you please help me to understand these?

C:\Users\Administrator\workspace\apache-cxf-3.0.2\bin > wsdl2java https://example.com/V1/HelpService?wsdl

C:\Users\Administrator\workspace\apache-cxf-3.0.2\bin> wsdl2java https://example.com/V1/HelpService?wsdl

* 2014年11月3日下午org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers
警告:默认密钥管理器无法初始化:C :\Users\Administrator.keystore(系统找不到指定的文件)

*Nov 03, 2014 1:11:20 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified)

2014年11月3日,下午org.apache.cxf.configuration .jsse.SSLUtils getDefaultKeyStoreManagers
警告:默认密钥管理器无法初始化:C:\Users\Administrator.keystore(系统找不到指定的文件)

Nov 03, 2014 1:11:20 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified)

2014年11月3日下午1:11:21 org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers
警告:默认密钥管理器无法初始化:C:\Users\Administrator.keystore(系统找不到指定的文件d)*

Nov 03, 2014 1:11:21 PM org.apache.cxf.configuration.jsse.SSLUtils getDefaultKeyStoreManagers WARNING: Default key managers cannot be initialized: C:\Users\Administrator.keystore (The system cannot find the file specified)*

C:\Users\Administrator\Workspace\apache-cxf-3.0.2\bin>

推荐答案

您的问题是未指定属性 javax.net.ssl.keyStore ,如果已指定未指定.keystore用于您的主目录。如果.keystore不存在,则会出现此错误。

Your problem is that the property javax.net.ssl.keyStore is not specified and if it is not specified .keystore is used in your home directory. If .keystore does not exist you will get this error.

来自org.apache.cxf.configuration.jsse.SSLUtils.java的片段:

Snip from org.apache.cxf.configuration.jsse.SSLUtils.java :

public static String getKeystore(String keyStoreLocation, Logger log) 

... //其他一些代码

...//some other code

keyStoreLocation = SystemPropertyAction.getProperty("javax.net.ssl.keyStore");
if (keyStoreLocation != null) {
    logMsg = "KEY_STORE_SYSTEM_PROPERTY_SET";
} else {
keyStoreLocation =
    SystemPropertyAction.getProperty("user.home") + "/.keystore";
    logMsg = "KEY_STORE_NOT_SET";
}

这篇关于wsdl2java-警告:无法初始化默认密钥管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆