1

I have started my application with this settings below:

-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=43588 
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false 
-Djava.rmi.server.hostname=***.**.***.** 

The app is running on a Centos machine. I have enabled the port via iptables. I have checked that when I run my application, the port 43588 is shown as listening.

Somehow I still get this error:

Cannot connect to ...:43588 using service:jmx:rmi///jndi/rmi://...:43588/jmxrmi?

What is my mistake? We are connecting from a windows machine.

jonsca
  • 125
  • 1
  • 1
  • 10
new14
  • 187
  • 3
  • 9

1 Answers1

0

look at this: How do I fix a 'Failed to retrieve RMIServer stub' JMX error?

basically java is using yet another connection, which is not configured.

mighq
  • 355
  • 3
  • 11