Home  >  Forum  >  Spring
Post New Query

ClassNotFoundException: org.springframework.cache. ehcache.EhCacheCacheManager


joined on
August 11,2014
Asked on March 16,2015
I am working with Spring 4 and Ehcache and getting error. Please help me to find what is missing.

Caused by: java.lang.ClassNotFoundException: org.springframework.cache.ehcache.EhCacheCacheManager
at java.net.URLClassLoader$1.run(Unknown Source) ~[na:1.8.0]
at java.net.URLClassLoader$1.run(Unknown Source) ~[na:1.8.0]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0]
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[na:1.8.0]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0]
at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
joined on
March 14,2013
Replied on March 16,2015

You are missing spring-context-support  JAR. You can use Gradle as

compile 'org.springframework:spring-context-support:4.1.5.RELEASE'


Find the link that will help you for spring and ehcache configuration.

http://www.concretepage.com/spring-4/spring-4-ehcache-configuration-example-with-cacheable-annotation



joined on
August 11,2014
Replied on March 16,2015

Solved.

Thanks a lot.

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us