I was trying to configure Spring Caching abstractions with EhCache as backing cache implementation and naturally was using the link , but there are minor errors on the page that caused me lots of confusion and waste of few hours.

Code:
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhcacheCacheManager" p:cache-manager="ehcache"/>

<!-- Ehcache library setup -->
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:config-location="ehcache.xml"/>
EhcacheCacheManager should have been EhCacheCacheManager.
p:cache-manager should have been p:cacheManager
p:config-location should have p:configLocation.