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
--
Cyrille Le Clerc
clecl...@xebia.fr


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

HYPERIC AGENT ERROR MESSAGE
============================
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}]:
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.CommunicationException [Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
        java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.JmxRemoteLifecycleListener$RmiClientLocalhostSocketFactory
(no security manager: RMI class loader disabled)]

Reply via email to