Aug 10th, 2006, 02:38 PM
jmx behind firewall on tomcat driving me crazy
I have tried what i believe is everything to allow me to connect via jmx to my web app. It is running behind a firewall.
Here is my connector:
<property name="objectName" value="connector:name=rmi"/>
I get this error when connecting:
FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi://mail.top-eeee.com:8100/jndi/rmi://mail.top-eeee.com:8335/server] failed to connect: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused
If I change the serviceUrl to:
Then I get this error:
FINER: [javax.management.remote.rmi.RMIConnector: jmxServiceURL=service:jmx:rmi://mail.eeee.com:8100/jndi/rmi://mail.top-eeee.com:8335/server] Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: server
Aug 10th, 2006, 04:36 PM
I am doing this on linux, could it be anything to do with my hostname...it appears to me that after connecting to the rmi registry, it is being told to use ip 127.0.0.1...which is bad, i am trying to connect from a remote computer
Aug 10th, 2006, 06:10 PM
it was a hostname problem. i now have hostname -i returning the ip address of the firewall, and it seems to work.