See comments inline

-----Original Message-----
From: Andres Aguado [mailto:andriu....@gmail.com] 
Sent: 9. februar 2012 13:52
To: users@tomcat.apache.org
Subject: Enabling JMX Remote Ports to connect Tomcat server remotelly with
jconsole tool

Hi Guys!

    First of all, I want to be grateful for help. I'm (very) newbie with
apache-tomcat world, level 1 (I've installed Tomcat sucessfully once ;-) )

    Well, I've a Tomcat 5.5.27 version with an application in production
environment and i've installed the same version for windows on a VM-WiXP to
test configuration before applying changes to production server
    And I want to monitorize the application remotelly through jconsole. So,
I've added this lines to catalina startup script:

set CATALINA_OPTS=-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false (When all works I'll add
authentication, but now i need to run jconsole.)

   Now I'm accesible to 8999 port (RMI Registry?) telneting, but jconsole
outputs a connection error. I've executed netstat -an command and I've seen
that 8999 port connextion is STABLISHED, but there is another port (48657)
to the tomcat ip in SYN_WAIT.

    Well, I've been reading documentation and it seems that i must configure
manually an additional port to connect through jconsole because this port is
a random port (RMIServer and RMIConnection?) and it's a problem to gain
access through firewalls

    I've been reading more information and I've arrived to this document
http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html#Enabling_JMX_Remote

     Then, I've added <Listener
className="org.apache.catalina.mbeans.JMXAdaptorLifecycleListener"
namingPort="8999" port="48657" host="tomcatservername" />

     This is the point i'm blocked. Tomcat doesn't start, and catalina.out
file shows this error:

SEVERE: Begin event threw exception
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.JMXAdaptorLifecycleListener

    I've been looking for JMXAdaptorLifecycleListener, but i don't know how
to make it works.

I'm new to this too but my guess is that the name is
JMXAdapterLifecycleListener (Adapter not Adaptor)

Could anyone help me?

Thanks and regards
Andres Aguado

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to