Org.hibernate.HibernateException:could not Instantiate Regionfactory [ Org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]

Source: Internet
Author: User
Tags addchild

Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in Class path resource [Beans4.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.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1338)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:473)
At Org.springframework.beans.factory.support.abstractautowirecapablebeanfactory$1.run ( abstractautowirecapablebeanfactory.java:409)
At java.security.AccessController.doPrivileged (Native Method)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:380)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:264)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:222)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:261)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:185)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:164)
At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:423)
At Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:728)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:380)
At Org.springframework.web.context.ContextLoader.createWebApplicationContext (contextloader.java:255)
At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:199)
At Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:45)
At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:3827)
At Org.apache.catalina.core.StandardContext.start (standardcontext.java:4334)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:791)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:771)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:525)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:920)
At Org.apache.catalina.startup.HostConfig.deployDirectories (hostconfig.java:883)
At Org.apache.catalina.startup.HostConfig.deployApps (hostconfig.java:492)
At Org.apache.catalina.startup.HostConfig.start (hostconfig.java:1138)
At Org.apache.catalina.startup.HostConfig.lifecycleEvent (hostconfig.java:311)
At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:117)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1053)
At Org.apache.catalina.core.StandardHost.start (standardhost.java:719)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1045)
At Org.apache.catalina.core.StandardEngine.start (standardengine.java:443)
At Org.apache.catalina.core.StandardService.start (standardservice.java:516)
At Org.apache.catalina.core.StandardServer.start (standardserver.java:710)
At Org.apache.catalina.startup.Catalina.start (catalina.java:566)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
caused by:org.hibernate.HibernateException:could not instantiate regionfactory [ Org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]
At Org.hibernate.cfg.SettingsFactory.createRegionFactory (settingsfactory.java:389)
At Org.hibernate.cfg.SettingsFactory.buildSettings (settingsfactory.java:262)
At Org.hibernate.cfg.Configuration.buildSettingsInternal (configuration.java:2119)
At Org.hibernate.cfg.Configuration.buildSettings (configuration.java:2115)
At Org.hibernate.cfg.Configuration.buildSessionFactory (configuration.java:1339)
At Org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory (annotationconfiguration.java:867)
At Org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (Localsessionfactorybean.java : 814)
At Org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (Localsessionfactorybean.java : 732)
At Org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet ( abstractsessionfactorybean.java:211)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods ( abstractautowirecapablebeanfactory.java:1369)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1335)

The original configuration is written as <property name= "Hibernate.cache.provider_class" >org.hibernate.catche.nocacheprovide</property >

Later changed to <property name= "Hibernate.cache.provider_class" >org.hibernate.catche.EhCacheProvider</property> It's right.

Org.hibernate.HibernateException:could not Instantiate Regionfactory [ Org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.