Access WildFly10 with JMX fails

ぐ巨炮叔叔 提交于 2019-12-12 05:48:10

问题


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

Both username and password works, because I can acces WildFly with that username/password on 172.28.128.3:9990

The message is the following:

Secure connection failed. Retry insecurely?

If i click yes, then this appears:

Connection failed: Retry?

What am I missing?

EDIT:

I've seen that if I execute Jconsole.exe -debug I can see this error at the connection time:

java.net.MalformedURLException: Unsupported protocol: http-remoting-jmx


回答1:


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

Your service:jmx:http-remoting-jmx://172.28.128.3:9990 URL will then work, or at least something similar did it for me.



来源:https://stackoverflow.com/questions/43886906/access-wildfly10-with-jmx-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!