I used JDK 1.7 (it may be linked ... ) and ubuntu (it may be linked also).
So I've added the following property:
-Djava.rmi.server.hostname=michael-ubu
and it started working ...
Here's the doc that finally helped me:
http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/javarmiproperties.html
java.rmi.server.hostname
This one also helped me:
21 |
I had a similar, if not the same, problem. I could connect to the JMX server if I started jconsole locally on the machine.
It appears the RMI server was not listening on the correct ip. So, as was suggested in this related question, I added the following:
to
JAVA_OPTS as well, and then it worked. |