Hibernate: net. SF. ehcache. config. configurator # configure: No configuration found. Tracing ing ehcache

Source: Internet
Author: User

To address this problem:Net. SF. ehcache. config. configurator # configure: No Configuration
Found. Grouping ing ehcache from ehcache-failsafe.xml found in
Classpath:
Jar: file:/E:/ytools/ssh/tools/Eclipse/myeclipse % 206.0/Eclipse/plugins/com.genuitec.org. hibernate. eclipse_6.0.1.zmyeclipse60316710/myeclipse-data/3.0/lib/ehcache-1.1.jar! Ehcache-failsafe.xml

 

Find the solution on the Internet:

Cause: this error is reported because no ehcache. xml file exists in the/Web-INF/classes (Web Development) or src directory (Java Development! This file is the hibernate cache configuration file.

Solution: extract the file ehcache-1.1.jar from the ehcache-failsafe.xml and rename it ehcache. XML to copy it to the classes!

Configuration File explanation:
<Defaultcache> sets the default cache data expiration policy.
Name indicates the specific cache name.
Maxelementsinmemory indicates the maximum object data volume that can be stored in the cache.
Eternal indicates whether the data in the cache is a constant.
Timetoidleseconds indicates the cache data passivation time
Timetoliveseconds indicates the cache data lifecycle.
Overflowtodisk indicates whether to enable disk cache when the memory is insufficient.

Feasible Method

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.