[Trouble shoot] failed to load Class "org. slf4j. impl. staticloggerbinder" in hibernate

Source: Internet
Author: User

Hibernate: hibernate-distribution-3.3.2.GA

 

Problems:

 

Slf4j: failed to load class "org. slf4j. impl. staticloggerbinder ".
Slf4j: see http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

 

The problem actually lies in slf4j. Obtain the following content based on the URL provided by the error message,

 

Failed to load class org.slf4j.impl.StaticLoggerBinder

This error is reported whenorg.slf4j.impl.StaticLoggerBinderClass cocould not be loaded into memory. This happens when no appropriate slf4j binding cocould be found on the class path. Placing one (and only one)Slf4j-nop.jar,Slf4j-simple.jar,Slf4j-log4j12.jar,Slf4j-jdk14.jarOrLogback-classic.jarOn the class path shocould solve the problem.

You can download slf4j bindings from the project download page.

 

 

As you can see, you only need to add the missing package. You can obtain the required package through the download link described above. I am usingSlf4j-simpleBut pay attention to version issues. In 3.3.2.ga Hibernate is used in the slf4j-api-1.5.8.jar, so I chose slf4j-simple-1.5.8.jar. Adding this package to the library required by hibernate can solve the problem.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.