diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java index 28c6f8c3d09..1e2c1bc97dc 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java @@ -567,9 +567,11 @@ private void createConnector(MBeanServer mbeanServer) throws IOException { Attribute attr = new Attribute("Port", connectorPort); mbeanServer.setAttribute(namingServiceObjectName, attr); } catch(ClassNotFoundException e) { - LOG.debug("Probably not using JRE 1.4: {}", e.getLocalizedMessage()); + LOG.warn("Probably not using JRE 1.4: {}", e.getLocalizedMessage()); } catch (Throwable e) { - LOG.debug("Failed to create local registry. This exception will be ignored.", e); + LOG.warn("Failed to create local RMI registry on port {}. This may happen when another process or broker instance " + + "is already using the port. To resolve, either change the connectorPort in your managementContext configuration " + + "or set createConnector=\"false\" if remote JMX access is not required. This exception will be ignored.", connectorPort, e); } // Create the JMXConnectorServer