Java: Hibernate 3.4 and SLF4J Impl Class not found and Singleton error
March 20th, 2009 by jeremychoneHibernate 3.4 does not have a SLF4J implementation, and if you download the latest implementation from http://www.slf4j.org/download.html you will get an imcompatible impl version (1.5.6 impl with the 1.5.2 api from Hibernate).
Just do the following:
- Remove all slf4j*.jar from your lib.
- Add the the latest sfl4j-api (i.e. slf4j-api-1.5.2)
- Add the latest impl slf4j-log4j12-1.5.6-.jar
NOTE: If you use Hibernate, make sure to use the slf4j-log4j*.jar, otherwise, changing the log4j.properties will have no effect. (see Turn off logging from log4j and slf4j)