Wednesday, May 5, 2010

[SOLVED] java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized.

PROBLEM:
Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized.


Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit
<------>at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:276)
<------>at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)


SOLUTION:
To add the dependency



org.slf4j
slf4j-log4j12
test

6 comments:

Mikael KROK said...

Very nice, it works!

Patrick Farrell said...

Thank you Alexey. Exactly what I needed.

ThanhTung said...

Hi, I'm newbie, so i want ask you about this error, i don't known where add your code? I use netbeans.

Alexey Zavizionov said...

ThanhTung, it is maven project file called pom.xml

Brad said...

That about did it. Thanks!

Brad said...

That about did it. Thanks!