title: Error in configuring EhCache and Spring
body: <p><strong>My Context file looks like this</strong>
      </p>
  
  <pre><code>&lt;bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cacheManager-ref="ehcache"/&gt;
  &lt;bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:configLocation="classpath:spring/cache/ehcache.xml" p:shared="true"/&gt;
  </code></pre>
  
  <p><strong>My EhCache.xml looks like this:</strong></p>
  
  <p>
  
      
      
      </p>
  
  <pre><code>&lt;defaultCache eternal="false" maxElementsInMemory="1000"
      overflowToDisk="false" diskPersistent="false" timeToIdleSeconds="0"
      timeToLiveSeconds="600" memoryStoreEvictionPolicy="LRU"/&gt;
  
  &lt;cache name="bdmCache" eternal="false"
      maxElementsInMemory="100" overflowToDisk="false" diskPersistent="false"
      timeToIdleSeconds="0" timeToLiveSeconds="300"
      memoryStoreEvictionPolicy="LRU" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>I get below copied exception when i start my tomcat</strong></p>
  
  <p>28/Jul/2014 09:32:05 977 ERROR    org.springframework.web.servlet.DispatcherServlet [localhost-startStop-1] - Context initialization failed (org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:467))
  org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 38 in XML document from class path resource [spring/web/spring-web.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 38; columnNumber: 118; The prefix "p" for attribute "p:cacheManager-ref" associated with an element type "bean" is not bound.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)</p>
  
  <p><strong>Please tell me what i am missing here.</strong></p>