Dueling Loggers?

From: Mike Elliott (mr..79.net)
Date: Wed Mar 17 2004 - 17:56:39 EST

  • Next message: Andrus Adamchik: "Re: Dueling Loggers?"

    I get the following message when I try to run a simple JUnit which
    utilizes cayenne:
                                                                                    
    log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
    log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
    log4j:ERROR [junit.runner.TestCaseClassLoade..5575e0] whereas object of type
    log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoade..36228].
    log4j:ERROR Could not instantiate appender named "A1".
                                                                                    
    Note: I'm not trying to use the logging facility at all. It appears
    that cayenne wants to do it one way and JUnit wants to do it a
    different way, and since the two of them don't agree the program
    simply blows up and refuses to do anything.
                                                                                    
    Is there a way around this?



    This archive was generated by hypermail 2.0.0 : Wed Mar 17 2004 - 17:56:43 EST