[logback-user] breaking on startup

Brian Moschel brian.moschel at gmail.com
Wed May 13 20:55:47 CEST 2009


Great, I was able to get it working again with your suggestions.  Thanks for
the great support!

- Brian

On Wed, May 13, 2009 at 1:23 PM, Ceki Gulcu <ceki at qos.ch> wrote:

>
> Right on.
>
> Robert Elliot wrote:
>
>> You have slf4j-log4j12.jar, logback-classic.jar and slf4j-simple.jar on
>> your classpath - that's three separate SLF4J implementations.  You should
>> have only one (logback-classic, presumably).  It's initialising SLF4J
>> Simple, so when you retrieve the SLF4J LoggerFactory it's returning an
>> org.slf4j.impl.SimpleLoggerFactory which you then try and cast to
>> ch.qos.lobgack.LoggerFactory, which naturally fails.
>>
>> Take slf4j-log4j12.jar and slf4j-simple.jar off your classpath - if you
>> are trying to redirect log4j to slf4j then you need log4j-over-slf4j.jar,
>> not slf4j-log4j12.jar which instead uses log4j as the slf4j implementation.
>>
>
> --
> Ceki Gülcü
> Logback: The reliable, generic, fast and flexible logging framework for
> Java.
> http://logback.qos.ch
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20090513/996ebc31/attachment.htm>


More information about the Logback-user mailing list