使用JMX访问WildFly10失败 [英] Access WildFly10 with JMX fails
问题描述
我正在尝试通过本地计算机上的JMX使用WildFly10访问virtualbox计算机.在JConsole中,我使用以下参数:
I'm trying to acces a virtualbox machine with a WildFly10 via JMX from my local machine. In the JConsole I'm using the following parameters:
remote process: service:jmx:http-remoting-jmx://172.28.128.3:9990
username: test
password: test
用户名和密码都可以使用,因为我可以在172.28.128.3:9990
Both username and password works, because I can acces WildFly with that username/password on 172.28.128.3:9990
消息如下:
安全连接失败.不安全地重试?
Secure connection failed. Retry insecurely?
如果我单击是",则会显示:
If i click yes, then this appears:
连接失败:重试?
Connection failed: Retry?
我想念什么?
我已经看到,如果我执行Jconsole.exe -debug,则可以在连接时看到此错误:
I've seen that if I execute Jconsole.exe -debug I can see this error at the connection time:
java.net.MalformedURLException:不支持的协议:http-remoting-jmx
java.net.MalformedURLException: Unsupported protocol: http-remoting-jmx
推荐答案
您需要在JConsole类路径中包含$JBOSS_HOME/bin/client/jboss-client.jar
:
You need to include the $JBOSS_HOME/bin/client/jboss-client.jar
in the JConsole class path:
[steve@steves-mbp wildfly-10.1.0.Final]$ jconsole \
-J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$JBOSS_HOME/bin/client/jboss-client.jar
您的service:jmx:http-remoting-jmx://172.28.128.3:9990
URL将起作用,或者至少对我有用.
Your service:jmx:http-remoting-jmx://172.28.128.3:9990
URL will then work, or at least something similar did it for me.
这篇关于使用JMX访问WildFly10失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!