When you tried the -Dlog4j.configuration, did you give the full path as to where the properties file exists?
Swami > -----Original Message----- > From: Kiefer, Hardy [mailto:[EMAIL PROTECTED]] > Sent: August 14, 2002 12:14 PM > To: 'Log4J Users List' > Cc: Buettner, 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 List' > Subject: RE: classloader problem > > > 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:[EMAIL 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 be part of the java CLASSPATH. > > Any other idea? > > Hardy > > -----Original Message----- > From: Bhangale, Bhushan [mailto:[EMAIL PROTECTED]] > 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:[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 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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > "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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > "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:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>