commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <>
Subject Re: [Logging] Log4jLogger does not implement Log error in Websphere environment
Date Sun, 04 May 2008 18:09:28 GMT

On Fri, 2008-04-25 at 11:23 -0500, Nitin Aurora wrote:
> Hi, I can't seem to start my application when using Commons-logging-1.1.jar. I am running
the application in Websphere environment in RAD 7. The application (ear) class loader
mode is PARENT_LAST with Application as the WAS classloader mode. It seems like the commons-logging
 jar and properties file in my application is getting loaded but then the server tries to
bind the Logfactory from the application classloader to the Log interface in the Websphere
runtime jar ( and I believe thats what triggers the following
error --  """[4/25/08 10:22:35:437 CDT] 0000000a SystemErr R Caused by: org.apache.commons.logging.LogConfigurationException:
Class org.apache.commons.logging.impl.Log4JLogger does not implement Log  at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(
 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(  at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(  at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
 at org.apache.commons.logging.LogFactory.getLog(  at
 at java.lang.J9VMInternals.initializeImpl(Native Method)  at java.lang.J9VMInternals.initialize(
 at  at java.lang.J9VMInternals.initializeImpl(Native
Method)  at java.lang.J9VMInternals.initialize(  at
 at  at
 at  at
 at  at 
at  at
 at  at
 at$ """    I dont understand why
the log interface in the runtime jar is being used to bind the Log4jLogger...(if that is the
case)...  Thanks, Nitin    _________________________________________________________________Spell
a grand slam in this game where word skill meets World Series. Get in the game.

Although you say that you are using commons-logging-1.1, I'm not sure
that this is actually the case. That version of commons-logging should
never report "Log4Logger does not implement Log". I suspect that
somewhere in a shared libs directory of your websphere installation is
an older version of commons-logging. If you update this to 1.1 or later
(1.1.1 is the current version) then this issue will probably go away.

If not, then try enabling the "diagnostics" feature of commons-logging.
See the "troubleshooting" page of the commons-logging site:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message