users@glassfish.java.net

Re: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 22 Mar 2007 18:13:40 -0700

Hi Adam,

Jan Luehe wrote On 03/08/07 05:59 PM,:

>
>
> glassfish_at_javadesktop.org wrote On 03/08/07 11:05 AM,:
>
>> [#|2007-03-08T19:55:04.828+0100|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=12;_ThreadName=Th
>>
>> read-55;_RequestID=767a2e2d-cfb2-4a17-8de2-5ed4be035dc4;|java.lang.ExceptionInInitializerError
>>
>> at
>> com.sun.jbi.httpsoapbc.OutboundMessageProcessor.<init>(OutboundMessageProcessor.java:146)
>>
>> at
>> com.sun.jbi.httpsoapbc.OutboundReceiver.run(OutboundReceiver.java:115)
>> at java.lang.Thread.run(Thread.java:595)
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException: org
>> .apache.commons.logging.LogConfigurationException: Class
>> org.apache.commons.logging.impl.Log4JLogger does not implement Lo
>> g
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
>>
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
>>
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
>>
>> at
>> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
>> at org.apache.commons.httpclient.HttpClient.<clinit>(Unknown
>> Source)
>> ... 3 more
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> org.apache.commons.logging.LogConfigurationException: Cla
>> ss org.apache.commons.logging.impl.Log4JLogger does not implement Log
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
>>
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
>>
>> ... 7 more
>> Caused by: org.apache.commons.logging.LogConfigurationException:
>> Class org.apache.commons.logging.impl.Log4JLogger does no
>> t implement Log
>> at
>> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)
>>
>> ... 8 more
>> |#]
>>
>> I get this exception when I put log4j.xml and its libraries into lib
>> folder. What's wrong?
>


a different user reported the exact same problem today.

Can you confirm the following:

- You have copies of commons-logging.jar in the domain's lib directory
as well as
  in your webapp's WEB-INF/lib.

- The classloader's "delegate" attribute in your webapp's sun-web.xml is
set to "false".


Jan