Hi,
I try to enable Tomcat / JMX, and I encounter the following error:
The configuration has not been set for this resource due to : Invalid configuration: Error contacting resource: Can't connect to MBeanServer [{jmx.password=manager, jmx.username=tomcat, jmx.url=service:jmx:rmi:///jndi/rmi://10.10.10.10:6969/jmxrmi}]: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketTimeoutException: Read timed out]
However, when I type 10.10.10.10:6969 on the browser, I can see the "MX4J/Http Adaptor console", both from the local Tomcat or remote machine.
What can be wrong?
I added this at the end of catalina.sh
if [ "$1" != "stop" ] ; then
set JAVA_OPT = "-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port = 6969 \
-Dcom.sun.management.jmxremote.authenticate = false $JAVA_OPTS"
export JAVA_OPTS
fi
I also modify server.xml as follows:
<Connector port="8009" protocol="AJP/1.3" enableLookups="true"
maxPostSize="0" redirectPort="8443" handler.list="mx" mx.enabled="true" mx.httphost="10.10.10.10"
mx.httpPort="6969" />