Error Handling (0 MS) [main] warn: net. SF. ehcache. config. configurator # configure: No configuration found.

Source: Internet
Author: User

(0 MS) [main] warn: net. SF. ehcache. config. configurator # configure: No configuration found. login ing ehcache from ehcache-failsafe.xml found in the classpath: jar: file:/D:/workspace/sshproject/webroot/WEB-INF/lib/ehcache-1.1.jar! Ehcache-failsafe.xml

 

Solution:

Cause: this error is reported because there is no ehcache. xml file under/sandh/Web-INF/classes! 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.

The method is feasible.

 

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.