logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brokenbone <mitja.ko...@ixtlan-team.si>
Subject No appenders could be found for logger (com.sun.faces.config.ConfigureListener). Please initialize the log4j system properly.
Date Fri, 11 Apr 2008 08:07:41 GMT

Hi

I'm trying to configure log4j in my web application (built with Oracle ADF
(JSF)). I've copied the jar into WEB-INF/lib folder, created
log4j.properties file and put it to WEB-INF folder and modified
orion-application.xml by adding

<imported-shared-libraries>
    <remove-inherited name="apache.commons.logging">
    </remove-inherited>
</imported-shared-libraries>

When I deploy this application to Oracle AS and restart opmn I can see the
log file saying (I've enabled oc4j debug)

08/04/11 09:10:28 log4j: Trying to find [log4j.xml] using context
classloader SSNApplication.root:0.0.0.
08/04/11 09:10:28 log4j: Trying to find [log4j.xml] using api:1.4.0 class
loader.
08/04/11 09:10:28 log4j: Trying to find [log4j.xml] using
ClassLoader.getSystemResource().
08/04/11 09:10:28 log4j: Trying to find [log4j.properties] using context
classloader SSNApplication.root:0.0.0.
08/04/11 09:10:28 log4j: Trying to find [log4j.properties] using api:1.4.0
class loader.
08/04/11 09:10:28 log4j: Trying to find [log4j.properties] using
ClassLoader.getSystemResource().
08/04/11 09:10:28 log4j: Could not find resource: [null].
08/04/11 09:10:28 log4j:WARN No appenders could be found for logger
(com.sun.faces.config.ConfigureListener).
08/04/11 09:10:28 log4j:WARN Please initialize the log4j system properly.
08/04/11 09:10:33 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized 

I've even tried modifying boot.xml found in oc4j.jar library by adding
<code-source path="${oracle.home}/lib/log4j-1.2.15.jar"/> but the warnings
are still there.

My log4j.properties file is picked by the server (as I can see using File
Monitor) and it looks like this:

# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=ERROR, A1, A2

log4j.logger.<my_package_prefix>=INFO
log4j.logger.oracle=WARNING
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
# OLD: %-4r [%t] %-5p %c %x - %m%n
log4j.appender.A1.layout.ConversionPattern=%-5p %c %x - %m%n

# A2 is set to be a RollingFileAppender.
log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%d{dd.MM.yyyy HH:mm:ss} [%t]
(%F:%L) %-5p %c %x - %m%n
log4j.appender.A2.File=../SSN/log/<my_package_prefix>.log
log4j.appender.A2.Threshold=INFO
log4j.appender.A2.ImmediateFlush=true
log4j.appender.A2.Append=False
log4j.appender.A2.MaxFileSize=10000KB
log4j.appender.A2.MaxBackupIndex=5

I'd appreciate any tips on what I'm doing wrong here since I'm struggling
with this for a while now.

Thank you in advance.

BB
-- 
View this message in context: http://www.nabble.com/No-appenders-could-be-found-for-logger-%28com.sun.faces.config.ConfigureListener%29.-Please-initialize-the-log4j-system-properly.-tp16626789p16626789.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message