我已经通过SSL配置了Tomcat JMX(类似于此Getting JMX working under Tomcat 7 with SSL and a self-signed cert)
现在我正在尝试根据以下文档执行jmx:open
或jmx:get
:
https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html
不幸的是,我无法指定信任存储,因此我得到以下异常:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
如何使用catalina-ant连接到Tomcat JMX?
答案 0 :(得分:0)
我在ANT_OPTS
命令执行之前配置ant
时能够在Centos上运行它:
export ANT_OPTS="-Djavax.net.ssl.trustStore=<path to trust store> -Djavax.net.ssl.trustStorePassword=<trust store password>"
请查看如何在Windows中配置ANT_OPTS的示例 http://ant.apache.org/manual/install.html#proxy