File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EhCache and the fly likes Spring ,Hibernate & ehcache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Caching » EhCache
Bookmark "Spring ,Hibernate & ehcache" Watch "Spring ,Hibernate & ehcache" New topic

Spring ,Hibernate & ehcache

Thillakan Saba
Ranch Hand

Joined: May 15, 2007
Posts: 53
I have got following warning when the application start up.

I found encache code in following url ..

ConfigurationFactory Code

what i understood from above code.

It is trying to load ehcache.xml but could not find the file so then it loads ehcache-failsafe.xml.

I want to know does this cause any problem to application ?

Any input on this greatly appreciated.


Guillaume Jourdan
Ranch Hand

Joined: Jul 24, 2012
Posts: 47


First, EHCache search your configuration : ehcache.xml.

If EHCache can't find it, a warning is sended and use default configuration in ehcache-failsafexml.

If you use second level cache with default cache, it will take the default cache value in ehcache-failsafexml.

If you use second level cache with specific named cache, I think you will have some problems.
I agree. Here's the link:
subject: Spring ,Hibernate & ehcache
jQuery in Action, 3rd edition