Results 1 to 2 of 2

Thread: could not instantiate CacheProvider

  1. #1
    Join Date
    Apr 2005
    Location
    Belo Horizonte, MG - Brasil
    Posts
    25

    Default could not instantiate CacheProvider

    Hi!

    Someone knows about this error

    Code:
    2005-05-06 14:22:37,515 INFO  [net.sf.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: false
    2005-05-06 14:22:37,515 INFO  [net.sf.hibernate.cfg.SettingsFactory] Query language substitutions: {no='N', true=1, yes='Y', false=0}
    2005-05-06 14:22:37,515 INFO  [net.sf.hibernate.cfg.SettingsFactory] cache provider: net.sf.hibernate.cache.EhCacheProvider
    2005-05-06 14:22:37,515 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,enderecoDao]; root of BeanFactory hierarchy}
    2005-05-06 14:22:37,515 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract void javax.ejb.EJBLocalObject.remove() throws javax.ejb.RemoveException,javax.ejb.EJBException, causedBy:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.hibernate.cache.EhCacheProvider
    net.sf.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.hibernate.cache.EhCacheProvider
    	at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:134)
    What am I possible doing wrong??


    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Do you have EHCache on the classpath?

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. Could not instantiate CacheProvider
    By Saloucious in forum Data
    Replies: 1
    Last Post: Aug 18th, 2005, 06:35 AM
  2. Replies: 6
    Last Post: Aug 3rd, 2005, 01:13 AM
  3. Odd behaviour when injecting TransactionTemplate
    By damon311 in forum Container
    Replies: 3
    Last Post: Jul 23rd, 2005, 11:21 AM
  4. Replies: 3
    Last Post: Jul 22nd, 2005, 01:08 AM
  5. Replies: 3
    Last Post: Nov 8th, 2004, 07:30 PM

Posting Permissions

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