added additional logging around ClassNotFoundException

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@631227 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-02-26 14:34:40 +00:00
parent 230255a479
commit 16b4009348
1 changed files with 4 additions and 1 deletions

View File

@ -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