tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyrille Le Clerc <>
Subject JMX Client UnmarshalException with JmxRemoteLifecycleListener and useLocalPorts="true"
Date Mon, 25 Jan 2010 16:42:22 GMT
   Dear all,

   I faced a problem enabling JmxRemoteLifecycleListener with
useLocalPorts="true" : my hyperic agent fails to connect with an
UnmarshalException caused by a ClassNotFoundException on
JmxRemoteLifecycleListener$RmiClientLocalhostSocketFactory (details below).
   The workaround I found is to copy catalina-jmx-remote.jar under
$HYPERIC_AGENT_HOME/bundles/agent-4.1.2-1053/lib/ .

   However, for a long term fix, I would find interesting to have
useLocalPorts="true" working out-of-the-box with tools like Hyperic HQ.
Surprisingly, this problem occurs with hyperic agent but not with VisualVM ;
I didn't have the time to investigate?

   I don't know yet if the long term fix is on hyperic-agent or tomcat side.
I just wanted to share the issue and the workaround with the community as I
didn't find anything on Google.

   If someone has insights on this problem, I am very interested.

Cyrille Le Clerc

Environment : apache-tomcat-6.0.24, Java HotSpot(TM) Server VM (build
11.3-b02, mixed mode), hyperic-agent-4.1.2-1053, Linux 2.6.9-78.ELlargesmp

2010-01-25 16:48:49,592 ERROR [Thread-0] [MeasurementCommandsService] Error
getting real time measurement: Error contacting resource: Can't connect to
MBeanServer [{jmx.username=system,
jmx.url=service:jmx:rmi:///jndi/rmi://localhost:14008/jmxrmi}]: Failed to retrieve RMIServer stub:
javax.naming.CommunicationException [Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested exception
(no security manager: RMI class loader disabled)]

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message