Re: Ceki saved my day!!! (classloader hell)

2002-12-02 Thread Ceki Gülcü
e log4j by setting a system property. See c-l documentation for more details. Conclusions: The "discovery process" of commons-logging is not only weak. it is a major bug and annoyance! I had problems with it without ever using the logging itself, who would expect that? The java classloader

Ceki saved my day!!! (classloader hell)

2002-11-30 Thread mailinglist09
erent, as they are loaded by different classloaders. Conclusions: The "discovery process" of commons-logging is not only weak. it is a major bug and annoyance! I had problems with it without ever using the logging itself, who would expect that? The java classloader architecture is ro

RE: classloader problem

2002-08-19 Thread Swami Iyer
server and hence don't want to suggest something wrong. Swami > -Original Message- > From: Kiefer, Hardy [mailto:[EMAIL PROTECTED]] > Sent: August 19, 2002 9:12 AM > To: 'Log4J Users List' > Subject: RE: classloader problem > > > Now we could read

RE: classloader problem

2002-08-19 Thread Kiefer, Hardy
Now we could read the property file with the J2EE classloader with void configureLog4j( String log4JConfigFile ) { try { InputStream is = getClass().getResourceAsStream(log4JConfigFile); Properties theProperties = new Properties

RE: classloader problem

2002-08-19 Thread Kiefer, Hardy
ClassLoader.getSystemResource(). log4j: Could not find resource: [C: ..our path.. \lib\classes\log4j.properties]. log4j:ERROR No appenders could be found for category (.). log4j:ERROR Please initialize the log4j system properly. I think the classloader of J2EE on Windows cannot load the property file. But what can we

RE: classloader problem

2002-08-15 Thread Swami Iyer
Kiefer, Hardy [mailto:[EMAIL PROTECTED]] > Sent: August 15, 2002 3:09 AM > To: 'Log4J Users List' > Cc: Buettner, Waltraud > Subject: RE: classloader problem > > > Swami, > > We gave only the file name without the path, but the file is > located in a > dir

RE: classloader problem

2002-08-14 Thread Kiefer, Hardy
Swami, We gave only the file name without the path, but the file is located in a directory which is in the Java CLASSPATH. Hardy -Original Message- From: Swami Iyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 7:31 PM To: 'Log4J Users List' Subject: RE: c

RE: classloader problem

2002-08-14 Thread Swami Iyer
r, Waltraud > Subject: RE: classloader problem > > > Bhushan, > > We tried both but without success. > > Hardy > > -Original Message- > From: Bhangale, Bhushan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 14, 2002 5:59 PM > To: 'Log4J Users

RE: classloader problem

2002-08-14 Thread Kiefer, Hardy
Bhushan, We tried both but without success. Hardy -Original Message- From: Bhangale, Bhushan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:59 PM To: 'Log4J Users List' Subject: RE: classloader problem Then it is fine. It should work. Is your log4j configur

RE: classloader problem

2002-08-14 Thread Bhangale, Bhushan
PROTECTED]] Sent: Wednesday, August 14, 2002 11:36 AM To: 'Log4J Users List' Cc: Buettner, Waltraud Subject: RE: classloader problem Hi Bhushan, Thanks for your mail, but we start our component in a cmd file on windows with java -cp %J2EE_CLASSPATH% ... So the J2EE_CLASSPATH should

RE: classloader problem

2002-08-14 Thread Kiefer, Hardy
: Wednesday, August 14, 2002 4:22 PM To: 'Log4J Users List' Subject: RE: classloader problem You are adding the log4j.properties path in J2EE_CLASSPATH System variable whereas you need to add it in CLASSPATH system variable which is a standard one. All the properties file reader in java looks f

RE: classloader problem

2002-08-14 Thread Bhangale, Bhushan
using. -Original Message- From: Kiefer, Hardy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:36 AM To: '[EMAIL PROTECTED]' Subject: classloader problem > Hello All, > can anybody help me. > I use the application server included in j2eesdk1.3.1 and my comp

classloader problem

2002-08-14 Thread Kiefer, Hardy
> Hello All, > can anybody help me. > I use the application server included in j2eesdk1.3.1 and my component > uses > log4j 1.1.3. The problem is, that log4j.properties can never be loaded, > but it is in the J2EE_CLASSPATH. > > With -Dlog4j.ConfigDebug=true I got: > > log4j: Trying to find [lo

RE: ClassLoader

2002-01-19 Thread Ceki Gülcü
s loader and others are being loaded by the >context class loader, which is the default JRE loader. My mistake. I should not write emails past midnight. What I meant was log4j does not have its own classloader. I'll change the PropertyConfigurator. Thanks for the valuable information. Ce

RE: ClassLoader

2002-01-18 Thread Herman, Dave
> This FAQ item is actually misleading. > > Log4j does not attempt to do any class loading itself. I > repeat, log4j does not > do classloading. Actually, it's when the PropertyConfigurator loads an appender class that it calls Thread.currentThread().getContextClassLoader().loadClass(name). The

Re: ClassLoader

2002-01-18 Thread Ceki Gülcü
ot do classloading. At 16:35 18.01.2002 -0700, you wrote: >Hello, > >I am using log4j 1.2alpha6, and have run into a problem with the new >ClassLoader behavior. I am running some JUnit tests through Ant 1.4.1, and >when log4j tries to load my appender class named in the properties

ClassLoader

2002-01-18 Thread Herman, Dave
Hello, I am using log4j 1.2alpha6, and have run into a problem with the new ClassLoader behavior. I am running some JUnit tests through Ant 1.4.1, and when log4j tries to load my appender class named in the properties file, it fails with this error: log4j:ERROR: A "foo.mumble.MyApp