Announcement Announcement Module
Collapse
No announcement yet.
EhCache initialization problems Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EhCache initialization problems

    Hello there! I've ehcache managed by spring. Here's my configuration:

    <bean id="myCacheManager" class="org.springframework.cache.ehcache.EhCacheMa nagerFactoryBean">
    <property name="configLocation">
    <value>classpath:conf/feedCache.xml</value>
    </property>
    </bean>
    <bean id="feedCache" class="org.springframework.cache.ehcache.EhCacheFa ctoryBean">
    <property name="cacheManager">
    <ref local="myCacheManager"/>
    </property>
    <property name="cacheName">
    <value>net.sf.webfeeds.feedCache</value>
    </property>
    </bean>

    The feedCache is located under the src/conf

    The problem is, when starting I get the following warning:

    net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/java/tomcat-5.5.9/webapps/webfeeds/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

    I've read the docs, and it seems that I'm doing everthing ok. What could be causing the problem?

    Thanks

    Vinicius

  • #2
    Re: EhCache initialization problems

    Originally posted by viniciuscarvalho
    Hello there! I've ehcache managed by spring. Here's my configuration:

    <bean id="myCacheManager" class="org.springframework.cache.ehcache.EhCacheMa nagerFactoryBean">
    <property name="configLocation">
    <value>classpath:conf/feedCache.xml</value>
    </property>
    </bean>
    <bean id="feedCache" class="org.springframework.cache.ehcache.EhCacheFa ctoryBean">
    <property name="cacheManager">
    <ref local="myCacheManager"/>
    </property>
    <property name="cacheName">
    <value>net.sf.webfeeds.feedCache</value>
    </property>
    </bean>

    The feedCache is located under the src/conf

    The problem is, when starting I get the following warning:

    net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/java/tomcat-5.5.9/webapps/webfeeds/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

    I've read the docs, and it seems that I'm doing everthing ok. What could be causing the problem?

    Thanks

    Vinicius
    It may be that you have something else using ehcache internally, that is initialized before your context is loaded.

    Comment


    • #3
      This happened especially if somebody else (a third party library) uses ehcache - for example hibernate.

      Comment

      Working...
      X