title: Getting class not found exception on EhCacheManager in Spring 4.2
body: <p>Not able to resolve below error:</p>
  
  <blockquote>
    <p>Cannot find class [org.springframework.cache.ehcache.EhCacheCacheManager]</p>
  </blockquote>
  
  <p>I am using Spring 4.2.4 and Ehcache 3.1.3.</p>
  
  <p>Maven dependencies: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;org.ehcache&lt;/groupId&gt;
      &lt;artifactId&gt;ehcache&lt;/artifactId&gt;
      &lt;version&gt;3.1.3&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Beans configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"&gt;
      &lt;property name="cacheManager"&gt;
          &lt;bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"&gt;
              &lt;property name="configLocation" value="/WEB-INF/ehcache.xml"/&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Not sure what is missing. Any help will be appreciated.</p>