You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jasmin Mehta <Ja...@nexweb.org> on 2010/08/06 16:26:40 UTC

[Logging] : User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.

Hi,

I am using Oracle Application Server 10g Release 3 (10.1.3.5.0) Patch Set 
5. 

While I deploy the ear file I am getting this exception:

DeployerRunnable.run User-specified log class 
'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not 
useable.oracle.oc4j.admin.internal.DeployerException: User-specified log 
class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is 
not useable.

I have both log4j jar and commons-logging-1.1.1.jar in my \WEB-INF\lib.

commons-loggig.properties

priority=1
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
# Use Log4j
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
# Configuration file of the log
log4j.configuration=log4j.properties

log4j.properties


log4j.rootCategory=DEBUG,stdout,standardFile
log4j.configCheckDelay=900000
################################## CONSOLE 
######################################## 
log4j.appender.OJDL=oracle.core.ojdl.log4j.OracleAppender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}] 
%-5p [%c{1}] %m%n
log4j.defaultInitOverride=true
################################## STANDARD FILE 
################################## 
log4j.appender.standardFile=org.apache.log4j.RollingFileAppender
log4j.appender.standardFile.File=/u5/reteklogs/dev/VGCC/log/vgcc.log
log4j.appender.standardFile.MaxFileSize=1000KB
log4j.appender.standardFile.MaxBackupIndex=50
log4j.appender.standardFile.layout=org.apache.log4j.PatternLayout
log4j.appender.standardFile.layout.ConversionPattern=[%d{dd MMM yyyy 
HH:mm:ss}] %-5p [%c{1}] %m%n



******************************************************************************
This email and any files transmitted with it are intended solely for 
the use of the individual or agency to whom they are addressed. 
If you have received this email in error please notify the Navy 
Exchange Service Command e-mail administrator. This footnote 
also confirms that this email message has been scanned for the
presence of computer viruses.

Thank You!            
******************************************************************************