RegionFactory « Cache « JPA Q&A





1. could not instantiate RegionFactory [org.hibernate.cache.imp    forum.hibernate.org

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.merrymaids.ecis.dao.enterprise.hibernate3.OfficeDao#113dd59' defined in ServletContext resource [/WEB-INF/context/security-applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/context/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at ...

2. could not instantiate RegionFactory [org.hibernate.cache.imp    forum.hibernate.org

010 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge 1011 [main] INFO org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge - Cache provider: org.hibernate.cache.EhCacheProvider Initial SessionFactory creation failed. org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:402) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:270) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383) at com.kindisoft.twitter.persistence.HibernateUtil.(HibernateUtil.java:26) at com.kindisoft.twitter.persistence.dao.impl.UserDAO.getAllUsers(UserDAO.java:95) at com.kindisoft.twitter.persistence.manager.UserManager.getAllUsers(UserManager.java:124) at com.kindisoft.twitter.persistence.manager.AddUsers.main(AddUsers.java:12) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:397) ... ...