From 0576de32a79fb7a2c75cda6d0fa21f6d5a61bcf2 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Wed, 15 Aug 2007 14:12:46 +0000 Subject: [PATCH] Attempt to fix AMQ-1363, to no avail git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@566177 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/console/Main.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/activemq-console/src/main/java/org/apache/activemq/console/Main.java b/activemq-console/src/main/java/org/apache/activemq/console/Main.java index 65bad2b8e6..1edb8f034d 100644 --- a/activemq-console/src/main/java/org/apache/activemq/console/Main.java +++ b/activemq-console/src/main/java/org/apache/activemq/console/Main.java @@ -61,6 +61,11 @@ public class Main { // Parse for extension directory option app.parseExtensions(tokens); + // lets add the conf directory first, to find the log4j.properties just in case its not + // in the activemq.classpath system property or some jar incorrectly includes one + File confDir = new File(app.getActiveMQBase(), "conf"); + app.addClassPath(confDir); + // Add the following to the classpath: // // ${activemq.base}/conf @@ -205,6 +210,7 @@ public class Main { System.out.println("ACTIVEMQ_BASE: " + getActiveMQBase()); ClassLoader cl = getClassLoader(); + Thread.currentThread().setContextClassLoader(cl); // Use reflection to run the task. try {