readthefuckingmanual.net

[SOLVED] java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

Error added: 2009-02-05T16:30:58Z

1 people waiting for the answer...

6 answers found.

Answer 876 (79.411766% helpful)

http://www.slf4j.org/codes.html#StaticLoggerBinder
Permalink

Answer 913 (61.53846% helpful)

make sure that slf4j-api-1.5.2.jar and slf4j-simple-1.5.2.jar are from the same version.
www.it-maverick.com
Permalink

Answer 1609 (28.571428% helpful)

Probably you are using diffrent version of slf4j. Meaning you might have 2 slf4j jars in your referenced libraries. For example if you are using some library like mule-core in your porject, it can have a dependency to some other slf4j jar with another versiion, so exclude it, in mvn, so first check in your referenced libraries, if you see there are multiple of these jars do mvn:dependency:tree to see which libraries include it, and exclude one
Permalink

Answer 1202 (20.0% helpful)

update version 1.5.6
Permalink

Answer 1018 (0.0% helpful)

GOD!!!!!!!!! If you created everything in 7 days, how I wish you didn\'t because everything in Java is soooo complicated to setup!!@!!@#!@!!$#@$#@%^$#% One damn good reason why I don\'t believe in you :D hahaha

Dunno why there\'s no XAMPP-like all in one stuff in Java, so damn frustrating

Anyway thanks! Finally got it working!
Permalink

Answer 1211 (0.0% helpful)

I tried using:

apache-maven-2.0.8\\bin\\mvn hibernate3:hbm2ddl

and got the error above - then tried using:

apache-maven-2.2.1\\bin\\mvn hibernate3:hbm2ddl

and everything worked as expected.  Not sure if the maven ext dir has been updated with a newer version of SLJ manually at some point by me or by default hte newer maven release has it.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: