Hibernate Tool slf4j error, hibernateslf4j

Source: Internet
Author: User

Hibernate Tool slf4j error, hibernateslf4j

After the Hibernate Tool 3.4 plug-in is installed in eclipse, MySql console and model are generated, and slf4j errors are generated all the time, leading to the inability to continue. The solution is as follows:


The root cause is that Hibernate Tool 3.4 uses slf4j 1.5, while eclipse and projects use Versions later than 1.6/1.7, which causes Hibernate Tool to not work.


1. Remove all slf4j references in artifacts. xml of eclipse. If slf4j is not used in the project, it will work theoretically.

Version 2. 1 # has a very high probability of errors, so don't count on it. The solution is:

Download the latest Eclipse 4.4

Install the JBoss Tool 4.2 plug-in. The above bug has been fixed in the Hibernate Tool.



An error occurred while running hibernate in eclipse.

Hibernate uses the slf4j logging system, which integrates log4j, apache commons logging, built-in logging of jdk, and implements logging by itself, it provides a unified interface to encapsulate the log implementation. Download the slf4j-1.5.8.zip package now. This is: Upload (this file must be placed in the src directory)

Hibernate Error

SLF log?
Why do you think the imported package you marked is incorrect?

Caused by: java. lang. ClassNotFoundException: javax. persistence. Cacheable
When annotation is imported, check whether the package has any reference errors.

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.