commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaime Marcondes" <ja...@objetto.com.br>
Subject Configure Log4j and Commons Loggin
Date Fri, 27 Feb 2004 02:36:27 GMT
Hi!

    I tried to configure a web application with commons-logging.jar e log4.jar, put in the
WEB-INF/lib directory, but when task deploy of ant is executed, prints this error:

installwar:
   [deploy] FAIL - Encountered exception java.io.IOException: org.apache.commons
.logging.LogConfigurationException: java.lang.InstantiationException: org.apache
.log4j.Logger


BUILD FAILED
C:\Fontes\Web\Latina\build.xml:366: FAIL - Encountered exception java.io.IOExcep
tion: org.apache.commons.logging.LogConfigurationException: java.lang.Instantiat
ionException: org.apache.log4j.Logger


    I make the log4j.properties in WEB-INF/classes:

log4j.logger.objetto.simple=DEBUG, simple

# This will log to a file
log4j.appender.simple=org.apache.log4j.FileAppender
log4j.appender.simple.File=log4jsimple.log

# simple layout 
log4j.appender.simple.layout=org.apache.log4j.SimpleLayout


    and so commons-logging.properties in WEB-INF/classes:

org.apache.commons.logging.LogFactory=org.apache.log4j.Logger



    Thank's for help.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message