Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Gary Clayburg
I'm running into a problem with log4j configuration when running junit tests from the junit.swingui.TestRunner class. Here is the error message I get to the console: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR T

Re: Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Ceki Gülcü
At 05:23 10.01.2003 -0700, you wrote: I'm running into a problem with log4j configuration when running junit tests from the junit.swingui.TestRunner class. Here is the error message I get to the console: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.

Quick question on "the scope of Log4j's configuration settings"

2003-01-10 Thread Lutz Michael
Thanks in advance for any feedback. My organization has a non-negotiable requirement to support many customers on a given machine. The J2EE servlet standard has rules specifying how each web application in a servlet container owns its own class loader. Thus, in the same JVM process space, we a

RE: Quick question on "the scope of Log4j's configuration settings"

2003-01-10 Thread Ebersole, Steven
The configs are maintained per-LoggerRepository. The scope of this depends on the RepositorySelector implementation that you are using. The default selector uses classloaders as its scoping mechanism, and thus does work with the way you want in servlet containers which use seperate classloaders f

RE: Quick question on "the scope of Log4j's configuration setting s"

2003-01-10 Thread Ceki Gülcü
At 08:59 10.01.2003 -0600, Ebersole, Steven wrote: The configs are maintained per-LoggerRepository. The scope of this depends on the RepositorySelector implementation that you are using. Exactly. The default selector uses classloaders as its scoping mechanism, and thus does work with the way

Re: Quick question on "the scope of Log4j's configuration settings"

2003-01-10 Thread Jacob Kjome
Hello Lutz, Putting log4j.jar inside WEB-INF/lib of each webapp solves this issue immediately. The other comments about repository selectors are true and valid, but, if you want to simplify things, simply putting a separate copy of log4j.jar in the WEB-INF/lib of every webapp you deploy will prov

Re: Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Gary Clayburg
Ceki Gülcü wrote: At 05:23 10.01.2003 -0700, you wrote: I'm running into a problem with log4j configuration when running junit tests from the junit.swingui.TestRunner class. Here is the error message I get to the console: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assigna

Re: Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Ceki Gülcü
At 12:08 10.01.2003 -0700, Gary Clayburg wrote: Thanks for your quick reply. Also, thanks for creating and maintaining a great logging tool! You are welcome. I checked my classpath and I am only using one log4j.jar file. But even if there were two jar files on the classpath, that wouldn't c

Re: Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Gary Clayburg
Ceki Gülcü wrote: At 12:08 10.01.2003 -0700, Gary Clayburg wrote: Thanks for your quick reply. Also, thanks for creating and maintaining a great logging tool! You are welcome. I checked my classpath and I am only using one log4j.jar file. But even if there were two jar files on the cl

Re: Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Ceki Gülcü
At 13:21 10.01.2003 -0700, Gary Clayburg wrote: The version of Junit I am using is 3.8.1, which is the latest. The Junit classloader is basically a custom classloader that loads classes from the same place as the system classloader, which is ultimately the $CLASSPATH. So basically, because o

Using Log4j with Weblogic 7.0

2003-01-10 Thread Madhav Inamti
I have been using Log4j with J2EE Reference Implementation and Websphere. Works pretty good with the J2EE connector I am working with. I recently started trying the connector on WebLogic and looks like log4j is not recognizing any appenders. I get a log4j:WARN No appenders could be f

Re: Problem with Junit swing TestRunner and log4j 1.2.7

2003-01-10 Thread Gary Clayburg
Ceki Gülcü wrote: At 13:21 10.01.2003 -0700, Gary Clayburg wrote: The version of Junit I am using is 3.8.1, which is the latest. The Junit classloader is basically a custom classloader that loads classes from the same place as the system classloader, which is ultimately the $CLASSPATH. S

IPlanet

2003-01-10 Thread David You
Hi I am using IPlanet. I notice a problem If I create put my log4j config file in the running directory, and read it from there, the log4j works fine. But if I put the config file in the classpath, and load it from there. The log4j will not generate anything... Any idea? thanks David -- To unsub