<code>
Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this collection must not be empty: it must contain at least 1 element
at org.springframework.util.Assert.notEmpty(Assert.ja va:268)
at org.springframework.util.Assert.notEmpty(Assert.ja va:280)
at org.springframework.cache.support.AbstractCacheMan ager.afterPropertiesSet(AbstractCacheManager.java: 46)
</code>

This assert fails because size of cache is 0. I havn't defined one, just planning to use "defaultCache" to begin with. But due to this, I am forced to define new cache names (atleast one), if I want to use "EhCacheCacheManager" bean.

If this is defect, then EhCacheCacheManager.loadCaches() has to be fixed.