Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load class "org.slf4j.impl.StaticLoggerBinder"

I am getting the following messages in console when I try to run the Hibernate .

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

but the hibernate works fine . is there any problem in my project ? i use Eclipse(Helios),Hibernate 3.6.8 . i use these jar files : antlr-2.7.6 , commons-collections-3.1 , dom4j-1.6.1 , hibernate3 , hibernate-jpa-2.0-api-1.0.1.Final , javassist-3.12.0.GA , jta-1.1 , slf4j-api-1.6.1

like image 670
Hossein Boka Avatar asked Oct 31 '11 09:10

Hossein Boka


People also ask

What is SLF4J error?

impl. StaticLoggerBinder". This is a warning which is caused when there are no SLF4J bindings provided in the classpath. SLF4J: Failed to load class "org.

What is the latest version of SLF4J?

The current stable and actively developed version of SLF4J is 2.0. 2.

What is SLF4J NOP jar?

SLF4J NOP BindingBinding/provider for NOP, an implementation that silently discards all logging messages.

What is SLF4J API used for?

The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. java. util. logging, logback, log4j) allowing the end user to plug in the desired logging framework at deployment time.


1 Answers

This error indicates that appropriate SLF4J binding could not be found on the class path. Placing one (and only one) of slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.

See http://www.slf4j.org/index.html

like image 91
micfra Avatar answered Oct 21 '22 09:10

micfra