On 09.02.2012 13:51, Andres Aguado wrote:
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.
Could anyone help me?
I think for TC 5.5 the class is not included in the binary downloads.
You need to grab a source download and build it using Java 5.
When building using Java 1.4.2 which IMHO is the default for a release,
the class can't be build.
Check your jar files, the class should be in catalina-optional.jar.
Starting with Tomcat 6 this functionality is available as a separate
Jar, which is part of the so-called "extra" downloads (in the extra
folder underneath the bin folder.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org