gpt4 book ai didi

java - HermesJMS 显示错误 :javax. jms.JMSException : Could not create Transport. 原因 : java. io.IOException:无法加载资源:

转载 作者:太空宇宙 更新时间:2023-11-03 13:39:38 25 4
gpt4 key购买 nike

我无法配置 org.apache.activemq.ActiveMQSslConnectionFactoryHermesJMS.It ends up saying an error

Caused by: java.io.IOException: Could not load resource: D:\ActiveMQCertificates\broker.ks
at org.apache.activemq.ActiveMQSslConnectionFactory.getUrlOrResourceAsStream(ActiveMQSslConnectionFactory.java:186)
at org.apache.activemq.ActiveMQSslConnectionFactory.loadClientCredential(ActiveMQSslConnectionFactory.java:158)
at org.apache.activemq.ActiveMQSslConnectionFactory.createKeyManager(ActiveMQSslConnectionFactory.java:142)
at org.apache.activemq.ActiveMQSslConnectionFactory.createTransport(ActiveMQSslConnectionFactory.java:105)
... 51 more

我在 D:\ActiveMQCertificates\broker.ks 有 keystore 文件。但是 hermes 无法加载资源。

Hermes中的配置是

经纪人网址:ssl://localhost:61616 keystore :D:\ActiveMQCertificates\broker.ks keystore 密码:xxxxx

Hermes中如何指定keystore路径?在这方面帮助我。

谢谢,马赫什

最佳答案

根据link ,尝试在JAVA_OPTS中加入

java -Djavax.net.ssl.trustStore= -Djavax.net.ssl.trustStorePassword=xxxxxxxx

关于java - HermesJMS 显示错误 :javax. jms.JMSException : Could not create Transport. 原因 : java. io.IOException:无法加载资源:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28344622/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com