logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhangale, Bhushan" <Bhushan.Bhang...@g-trade.com>
Subject RE: classloader problem
Date Wed, 14 Aug 2002 15:58:59 GMT
Then it is fine. It should work.

Is your log4j configuration file name is default log4j.properties or you
have given your own name? If you have given your own name then you must
specify that in java -Dlog4j.configuration=<your file name>.properties

-----Original Message-----
From: Kiefer, Hardy [mailto:Hardy.Kiefer@softwareag.com] 
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 be part of the java CLASSPATH.

Any other idea?

Hardy 

-----Original Message-----
From: Bhangale, Bhushan [mailto:Bhushan.Bhangale@g-trade.com]
Sent: 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 for file in CLASSPATH
only.

Your J2EE_CLASSPATH is only for the application server you are using.

-----Original Message-----
From: Kiefer, Hardy [mailto:Hardy.Kiefer@softwareag.com] 
Sent: Wednesday, August 14, 2002 5:36 AM
To: 'log4j-user@jakarta.apache.org'
Subject: classloader problem



> 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 [log4j.properties] using
> sun.misc.Launcher$AppClassLoader@71732b class loader.
> log4j: Trying to find [log4j.properties] using 
> ClassLoader.getSystemResource().
> log4j: Could not find resource: [log4j.properties]. log4j:ERROR No 
> appenders could be found for category 
> (com.<myCompany>.<myPackage>.AbstractConnectionFactory).
> log4j:ERROR Please initialize the log4j system properly.
> 
> Has anybody any idea?
> 
> thanks,
> Hardy
> 

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


"The information in this e-mail, and any attachment therein, is 
confidential and for use by the addressee only. If you are not the 
intended recipient, please return the e-mail to the sender and delete 
it from your computer. Although The Bank of New York attempts to 
sweep e-mail and attachments for viruses, it does not guarantee that 
either are virus-free and accepts no liability for any damage sustained 
as a result of viruses." 


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


"The information in this e-mail, and any attachment therein, is 
confidential and for use by the addressee only. If you are not the 
intended recipient, please return the e-mail to the sender and delete 
it from your computer. Although The Bank of New York attempts to 
sweep e-mail and attachments for viruses, it does not guarantee that 
either are virus-free and accepts no liability for any damage sustained 
as a result of viruses." 


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message