[logback-user] org.slf4j.impl.StaticLoggerBinder.SINGLETON
stlecho
stlecho at gmail.com
Tue Oct 25 17:24:38 CEST 2011
You're correct. I'm having 2 maven repositories and had a mix of incompatible
logback and slf4j versions. The problem is solved. Thanks for your support
:-)
Ceki Gulcu wrote:
>
>
> FYI, given Maven's transitive dependency rules, writing:
>
> <dependency>
> <groupId>ch.qos.logback</groupId>
> <artifactId>logback-classic</artifactId>
> <version>0.9.30</version>
> </dependency>
>
> is equivalent to writing:
>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>1.6.3</version>
> </dependency>
> <dependency>
> <groupId>ch.qos.logback</groupId>
> <artifactId>logback-core</artifactId>
> <version>0.9.30</version>
> </dependency>
> <dependency>
> <groupId>ch.qos.logback</groupId>
> <artifactId>logback-classic</artifactId>
> <version>0.9.30</version>
> </dependency>
>
>
> As for your actual question, you most probably have an earlier version
> of slf4j on your class path. Check your dependency tree with the
> command 'mvn dependency:tree'. Also note that Weld bundles SLF4J
> within itself.
>
> --
> Ceki
> http://twitter.com/#!/ceki
>
>
> On 25/10/2011 12:34 PM, stlecho wrote:
>>
>> I'm using the underneath listed dependencies and I'm receiving the same
>> error
>> message: "java.lang.reflect.InvocationTargetException:
>> java.lang.IllegalAccessError: tried to access field
>> org.slf4j.impl.StaticLoggerBinder.SINGLETON from class
>> org.slf4j.LoggerFactory".
>>
>> What could I do to correct this ?
>>
>> <dependency>
>> <groupId>org.slf4j</groupId>
>> <artifactId>slf4j-api</artifactId>
>> <version>1.6.3</version>
>> </dependency>
>> <dependency>
>> <groupId>ch.qos.logback</groupId>
>> <artifactId>logback-core</artifactId>
>> <version>0.9.30</version>
>> </dependency>
>> <dependency>
>> <groupId>ch.qos.logback</groupId>
>> <artifactId>logback-classic</artifactId>
>> <version>0.9.30</version>
>> </dependency>
>>
>>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
>
--
View this message in context: http://old.nabble.com/org.slf4j.impl.StaticLoggerBinder.SINGLETON-tp20987705p32718090.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user
mailing list