Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 45525 invoked from network); 14 Jul 2004 15:24:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jul 2004 15:24:25 -0000 Received: (qmail 27051 invoked by uid 500); 14 Jul 2004 15:24:17 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 27003 invoked by uid 500); 14 Jul 2004 15:24:17 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 26987 invoked by uid 99); 14 Jul 2004 15:24:17 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received: from [64.4.31.35] (HELO hotmail.com) (64.4.31.35) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 14 Jul 2004 08:24:11 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 14 Jul 2004 08:24:09 -0700 Received: from 24.9.152.249 by by13fd.bay13.hotmail.msn.com with HTTP; Wed, 14 Jul 2004 15:24:09 GMT X-Originating-IP: [24.9.152.249] X-Originating-Email: [shaunlaws@hotmail.com] X-Sender: shaunlaws@hotmail.com From: "Shaun Laws" To: commons-user@jakarta.apache.org Bcc: Subject: LogConfigurationException using Junit and Digester Date: Wed, 14 Jul 2004 09:24:09 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Jul 2004 15:24:09.0749 (UTC) FILETIME=[9C1F7C50:01C469B6] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I keep getting a LogConfigurationException whenever I make the call: Digester digester = new Digester() I stripped out my code to the point where the following minimal code produces the exception: package com.webcredenza.util.paymentprocessor.test; import org.apache.commons.digester.Digester; import junit.framework.*; public class JunitTest extends TestCase { public void testFactoryCCConfigFileNoProcessor() { try { Digester digester = new Digester(); } catch (Exception ex) { ex.printStackTrace(); } } public static Test suite() { TestSuite suite = new TestSuite(JunitTest.class); return suite; } public static void main(String[] args) { junit.swingui.TestRunner.run(JunitTest.class); } } A snippet of the stack trace showing the call made by the JUnit framework to the test method and the subsequent call to the Digester constructor: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370) at org.apache.commons.digester.Digester.(Digester.java:346) at com.webcredenza.util.paymentprocessor.test.JunitTest.testFactoryCCConfigFileNoProcessor(JunitTest.java:9) Has anyone out there seen this problem before. I'd be grateful for any suggestions as to how to avoid it. Many thanks, Shaun Laws _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org