From 16b400934873f49a32afd46b30fb15358c09a328 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Tue, 26 Feb 2008 14:34:40 +0000 Subject: [PATCH] added additional logging around ClassNotFoundException git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@631227 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/broker/jmx/ManagementContext.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java index 0dc1c60f23..bb30571e1b 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java @@ -373,7 +373,10 @@ public class ManagementContext implements Service { // set the naming port Attribute attr = new Attribute("Port", Integer.valueOf(connectorPort)); mbeanServer.setAttribute(namingServiceObjectName, attr); - } catch (Throwable e) { + } catch(ClassNotFoundException e) { + LOG.debug("Probably not using JRE 1.4: " + e.getLocalizedMessage()); + } + catch (Throwable e) { LOG.debug("Failed to create local registry", e); } // Create the JMXConnectorServer