I am getting following error when configure apache tomcat for monitoring,
This resource is turned off or has not been configured properly.
The problem is: Invalid configuration: Error contacting resource: Can't connect to MBeanServer [{jmx.url=service:jmx:rmi:///jndi/rmi://localhost:6969/jmxrmi}]: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect]
could you please help me where I'm doing wrong?