diff --git a/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java b/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java index 89addeb7c7..e0d3d80ccc 100644 --- a/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java +++ b/activemq-runtime-config/src/main/java/org/apache/activemq/plugin/RuntimeConfigurationBroker.java @@ -173,7 +173,7 @@ public class RuntimeConfigurationBroker extends AbstractRuntimeConfigurationBrok DtoBroker jaxbConfig = null; if (configToMonitor != null) { try { - JAXBContext context = JAXBContext.newInstance(DtoBroker.class); + JAXBContext context = JAXBContext.newInstance(DtoBroker.class.getPackageName(), DtoBroker.class.getClassLoader()); Unmarshaller unMarshaller = context.createUnmarshaller(); unMarshaller.setSchema(getSchema());