ehcache warning message " No configuration found"
ehcache.xml
should be introduced in your classpath
and specifically in WEB-INF/classes/
. Then, you can specify your needs in it according to your environment.
This is an example:
<?xml version="1.0" encoding="UTF-8"?><ehcache> <diskStore path="java.io.tmpdir"/> <cache name="org.hibernate.cache.UpdateTimestampsCache" maxElementsInMemory="50000" eternal="true" overflowToDisk="true"/> <cache name="org.hibernate.cache.StandardQueryCache" maxElementsInMemory="50000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true" diskPersistent="false" diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU" /> <defaultCache maxElementsInMemory="50000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true" diskPersistent="false" diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU" /></ehcache>
After 3 years, hope that my response can help others.
Loading ehcache-failsafe.xml
doesn't cause a problem per se; however it most likely isn't optimal for your application.
There's no way for EhCache developers to know what you intend to cache; thus ehcache-failsafe.xml
included in distribution attempts to provide some "lowest common denominator" settings that would work more or less OK in most cases. You get a warning as a reminder to specify configuration that would be more appropriate for your specific needs.