[logback-user] jul-to-slf4j conflicts with logback-classic
Ceki Gulcu
listid at qos.ch
Thu Oct 23 10:58:54 CEST 2008
Hi Gili,
Which version of SLF4J are you using? I am asking because SLF4J 1.5.5 corrected
what might be a related problem.
I should be available on IRC. Try to catch me if you can.
cowwoc wrote:
> Ceki,
>
> I need your help with this.
>
> I noticed that I can deploy the libraries just fine so long as I omit the
> call to SLF4JBridgeHandler.install(). If I invoke that method then:
>
> 1) I never see any more output from stdout
> 2) Glassfish no longer replies to commands (I have to kill it using task
> manager)
>
> It also doesn't look like logback.xml is getting picked up because I have
> debug="true" in my configuration but I see nothing special on startup.
>
> Can we schedule another IRC session to troubleshoot this?
>
> Thanks,
> Gili
>
>
> cowwoc wrote:
>> Hi,
>>
>> If I deploy:
>>
>> slf4j-api
>> logback-classic
>> logback-core
>> jul-to-slf4j
>>
>> I get:
>>
>> Deploying application in domain failed; Logging factory implementation
>> cannot be null. See also http://www.slf4j.org/codes.html#null_LF
>>
>> but if I remove jul-to-slf4j from the classpath it works just fine
>> (except, obviously, jul-to-slf4j is disabled).
>>
>> I am invoking SLF4JBridgeHandler.install() from within a
>> ServletContextListener. Perhaps this is too late somehow?
>>
>> What am I doing wrong?
>>
>> Thank you,
>> Gili
>>
>
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the Logback-user
mailing list