wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from" Watch "java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from" New topic
Author

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi ,

I'm very new to Hibernate , i got this exception when trying to run this example the example , the exception full stack are :




Anything missing ?

Thanks,
Sherif
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi ,

any recommendations ??
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

i found the solution by removing all the lib from the classpath then put them again and take care from the lib version , use always the latest ..
Vipul Gulhane
Greenhorn

Joined: Mar 28, 2011
Posts: 20
Solution:
1. Remove file:
hibernate-3.3.1.GA\lib\required\slf4j-api-1.5.2.jar

2. Add to your project two new files:
slf4j-api-1.5.6.jar
slf4j-log4j12-1.5.6.jar

Irfan Rashid
Greenhorn

Joined: Nov 19, 2012
Posts: 1
I solved the problem by just adding "slf4j-log4j12.jar" jar file.
manjunath kk kanakagiri
Greenhorn

Joined: Mar 17, 2013
Posts: 1
http://slf4j.org/faq.html#IllegalAccessError

The above URL has the clear information for the cause of the issue and its fix.
ie. because of the conflicts between 1.4.3 & earlier and 1.5.5 & later versions.
 
jQuery in Action, 2nd edition
 
subject: java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from