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.