I don't see anything wrong, right off the bat, with your
log4j.properties file.  Where in the startup log are you seeing the "No
appenders" warning?  Could it be that something else is starting up
log4j prior to your application being loaded, and there's not
log4j.properties on the classpath at that time?

 - George
   http://www.idiacomputing.com/

> -----Original Message-----
> From: starki78 [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 12, 2006 3:49 AM
> To: user
> Subject: How to make work Log4j with Struts?
> 
> 
> Hi I'm programming Struts 
> by using JDeveloper.
> When I start the
> web-application I always get:
> 
> 06/04/12 09:36:37 log4j:WARN No appenders could be found for 
> logger (org.apache.struts.util.PropertyMessageResources).
> 
> 06/04/12 09:36:37 log4j:WARN Please initialize the log4j 
> system properly.
> 
> The reason why I try to improve logging are internal server 
> errors that occur sometimes. When I put the same web-project 
> to tomcat I get nearly always more meaningful error messages:
> 
> 
> In the classes folder I've this log4j.properties file 
> log4j.defaultInitOverride = false
> 
> log4j.rootLogger=debug, stdout, R
> 
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> 
> # Pattern to output the caller's file name and line number. 
> log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
> 
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=${catalina.home}/logs/err.log
> 
> log4j.appender.R.MaxFileSize=100KB
> # Keep one backup file
> log4j.appender.R.MaxBackupIndex=1
> 
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
> 
> 
> Can someone help me? The best case would be to have the ability 
> to log also internal Struts-messages
> 
> Thanks Starki 
>  
> 
> 
> ---------------------------------------------------------------------
> 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