Hrm.

Tomcat does have write access but the file is not created. I just deleted the file now, and ran the app again, and it is not creating the file.

Ideas?

Shapira, Yoav wrote:

Howdy,
So you know it reads your file.  Is the log file created?  Does the web
server user have write access to the directory (WEB-INF/classes) in
which the log file needs to go?

Yoav Shapira
Millennium ChemInformatics




-----Original Message-----
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 2:18 PM
To: Log4J Users List
Subject: Re: [NEWBIE] log4j setup problem?

If I change the path (by cutting out classes from the path, lets say) I
get this in my Catalina log:

log4j:ERROR Could not read configuration file
[/home/denis/src/resumeweb/WEB-INF/RMLog4j.properties]

If I have the classpath described below, then there is no error in
Catalina log;

Shapira, Yoav wrote:



Howdy,





I have a number of classes in my web app. I instantiate my logger in




my




init servlet with:

PropertyConfigurator.configure(Constants.SITEPATH+"/WEB-
INF/classes/RMLog4j.properties");




Is the file indeed at this location?  Is it readable?  Do you get any
log4j errors in your console log (wherever System.out/System.err
messages go in your server setup)?

Yoav Shapira



This e-mail, including any attachments, is a confidential business


communication, and may contain information that is confidential,
proprietary and/or privileged. This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else. If you are not the(an)


intended


recipient, please immediately delete this e-mail from your computer


system


and notify the sender. Thank you.


---------------------------------------------------------------------
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]






This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


--------------------------------------------------------------------- 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]



Reply via email to