Results 1 to 3 of 3

Thread: EhCache initialization problems

  1. #1

    Default 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. #2
    Join Date
    Sep 2004
    Posts
    1,086

    Default Re: EhCache initialization problems

    Quote 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.

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    This happened especially if somebody else (a third party library) uses ehcache - for example hibernate.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Replies: 5
    Last Post: Mar 8th, 2006, 04:32 AM
  2. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  3. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  4. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  5. MVC step-by-step problems
    By joegaber in forum Web
    Replies: 2
    Last Post: Jul 25th, 2005, 10:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •