Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 79057 invoked from network); 24 Nov 2006 16:54:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2006 16:54:28 -0000 Received: (qmail 44257 invoked by uid 500); 24 Nov 2006 16:54:34 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 44203 invoked by uid 500); 24 Nov 2006 16:54:33 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 44166 invoked by uid 99); 24 Nov 2006 16:54:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2006 08:54:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2006 08:54:22 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4384D7142C1 for ; Fri, 24 Nov 2006 08:54:02 -0800 (PST) Message-ID: <26415556.1164387242273.JavaMail.jira@brutus> Date: Fri, 24 Nov 2006 08:54:02 -0800 (PST) From: "Nellya Udovichenko (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Created: (GERONIMO-2595) Hardcoded MX4J logger in org.apache.geronimo.kernel.log.GeronimoLogging class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hardcoded MX4J logger in org.apache.geronimo.kernel.log.GeronimoLogging class ----------------------------------------------------------------------------- Key: GERONIMO-2595 URL: http://issues.apache.org/jira/browse/GERONIMO-2595 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: Logging Affects Versions: 1.2 Reporter: Nellya Udovichenko Description: MX4J logger class (mx4j.log.CommonsLogger) is hardcoded in org.apache.geronimo.kernel.log.GeronimoLogging: ... Class clazz = Class.forName("mx4j.log.Log"); Class paramClazz = Class.forName("mx4j.log.Logger"); Method method = clazz.getDeclaredMethod("redirectTo", new Class[] {paramClazz}); paramClazz = Class.forName("mx4j.log.CommonsLogger"); method.invoke(null, new Object[] {paramClazz.newInstance()}); ... So you can't have another logger class instead of default one. If you use JDK with mx4j.jar in bootclasspath (Apache Harmony, for example), mx4j can't access commons-logging.jar that is only available in classpath, so Geronimo doesn't start and NoClassDefFoundError exception occurs. And there's no way to replace mx4j.log.CommonsLogger with another logger. Looks like there're two ways to resolve this problem: 1. Comment the code above and use the existing mechanism in mx4j to set the property 'mx4j.log.prototype' from the command line. 2. Add the property to xml file (pom.xml?), and use 'mx4j.log.CommonsLogger' as default value. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira