Glad you got it working. A note on your postscript. All jar files required by a servlet-based application should be present in the web app's WEB-INF/lib directory for automatic detection. Thats not unique to Tomcat.
Typically when using log4j in a web-app, place log4j.jar in the WEB-INF/lib directory; place your config file in WEB-INF/classes... ----- Original Message ----- From: "Ronnie" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Saturday, March 01, 2003 9:59 AM Subject: Re: Really Newbie Problem > It's working at last!!! =) :-) > > I put the file log4j.jar into the "webapps/<appName>/WEB-INF/lib" folder and > it worked! > > I added the -Dlog4j.debug=true line into catalina.bat and found that log4j > initialization couldn't find log4j.properties file. > So out of frustration I copied the files log4j.jar and log4j.properties into > every single folder in "webapps/<appName>" and started tomcat. > Got a shock when it actually started initializing correctly! > Went through some trial and testing and found out the cause of all my woes > for the past week... > > This is all thanks to you Mr Ebersole! I thank you very much! =) > > > Gratefully, > Ronnie > > P.S. Maybe this problem could be highlighted in the documentation? I had > thought Tomcat should be able to find all required libraries in "common/lib" > but turned out to be false in my case. > ----- Original Message ----- > From: "Steve Ebersole" <[EMAIL PROTECTED]> > To: "Log4J Users List" <[EMAIL PROTECTED]> > Sent: Saturday, 01 March, 2003 10:49 PM > Subject: Re: Really Newbie Problem > > > > Probabaly not. I am assuming startup is the bat/cmd file to start tomcat? > > You need to edit that file. Somewhere in that file there will be a java > > command to actually start tomcat. Thats where you need to put the -D. > > > > java -D log4j.debug=true ... > > > > Also just noticed that you define a logger named > > "edu.rmit.isys2049.EmployeeAccessBean", but then never attach any > appenders > > to it. Because of the "additivity" feature of log4j, statements going to > > that logger will also be handled by the rootLogger, but root has WARN set > as > > its level. So in reality, statements sent to the > > "edu.rmit.isys2049.EmployeeAccessBean" logger, will only shoe up if they > are > > WARN or above. Not sure that is what you are intending. > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Promote your business from just $5 a month! > http://sg.biztools.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]