ClassNotFoundException: org.springframework.cache. ehcache.EhCacheCacheManager




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)



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






Replied on March 16, 2015
Solved.

Thanks a lot.


Write Answer










©2024 concretepage.com | Privacy Policy | Contact Us