org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contextRepositorySessionFactory' defined in class path resource [com/sdl/context/engine/repository/beans-sdl-context-repository-persistence.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory]

GitHub | NiclasCedermalm | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Enabling CWD repository in DXA will not work

    GitHub | 1 year ago | NiclasCedermalm
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contextRepositorySessionFactory' defined in class path resource [com/sdl/context/engine/repository/beans-sdl-context-repository-persistence.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory]
  2. 0

    JPA - Jboss 7 - Spring - Benutzung von Jboss TransactionManager | Java: Java-Forum.org

    java-forum.org | 10 months ago
    javax.persistence.PersistenceException: [PersistenceUnit: my_unit] Unable to build EntityManagerFactory
  3. 0

    Hibernate: could not load requested class

    Stack Overflow | 3 years ago | Muhammad Tauseef
    org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver org.h2.Driver class not found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I can not run C3P0ConnectionProvider

    Stack Overflow | 4 years ago | Max Usanin
    java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
  6. 0

    Hibernate not working with Sql Server 2008

    Stack Overflow | 5 years ago | Ahmed Durrani
    org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.testing.cache.CachingRegionFactory]

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      Could not load requested class : org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory

      at org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass()
    2. Hibernate
      ClassLoaderServiceImpl$1.findClass
      1. org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
      1 frame
    3. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      2 frames
    4. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
      2. org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:386)
      3. org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:251)
      4. org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
      5. org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
      6. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
      7. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1775)
      7 frames
    5. Spring ORM
      LocalSessionFactoryBean.afterPropertiesSet
      1. org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:252)
      2. org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:377)
      3. org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:362)
      3 frames
    6. Spring Beans
      AbstractBeanFactory.getBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      8 frames
    7. Spring Context
      AbstractApplicationContext.getBean
      1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
      1 frame
    8. com.sdl.context
      ContextEngineClaimProcessor.<init>
      1. com.sdl.context.ambient.ContextEngineClaimProcessorSupport.initialize(ContextEngineClaimProcessorSupport.java:112)
      2. com.sdl.context.ambient.ContextEngineClaimProcessorSupport.<init>(ContextEngineClaimProcessorSupport.java:75)
      3. com.sdl.context.ambient.ContextEngineClaimProcessorSupport.getInstance(ContextEngineClaimProcessorSupport.java:63)
      4. com.sdl.context.ambient.ContextEngineClaimProcessor.<init>(ContextEngineClaimProcessor.java:58)
      4 frames
    9. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)
      5. java.lang.Class.newInstance0(Class.java:374)
      6. java.lang.Class.newInstance(Class.java:327)
      6 frames
    10. com.tridion.ambientdata
      AmbientDataServletFilter.init
      1. com.tridion.ambientdata.Engine.<init>(Engine.java:89)
      2. com.tridion.ambientdata.EngineFactory.newEngine(EngineFactory.java:49)
      3. com.tridion.ambientdata.web.AmbientDataServletFilter.init(AmbientDataServletFilter.java:114)
      3 frames
    11. Glassfish Core
      HostConfig.manageApp
      1. org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
      2. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:109)
      3. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
      4. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
      5. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      6. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
      7. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
      8. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
      9. org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1648)
      9 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    13. Embedded GlassFish Web
      BaseModelMBean.invoke
      1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
      1 frame
    14. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
      2 frames
    15. Embedded GlassFish Web
      MBeanFactory.createStandardContext
      1. org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:463)
      2. org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:413)
      2 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    17. Embedded GlassFish Web
      BaseModelMBean.invoke
      1. org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
      1 frame
    18. Java RT
      Thread.run
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
      2. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
      3. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1486)
      4. javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:96)
      5. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1327)
      6. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1419)
      7. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:847)
      8. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      9. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      10. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      11. java.lang.reflect.Method.invoke(Method.java:601)
      12. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
      13. sun.rmi.transport.Transport$1.run(Transport.java:177)
      14. sun.rmi.transport.Transport$1.run(Transport.java:174)
      15. java.security.AccessController.doPrivileged(Native Method)
      16. sun.rmi.transport.Transport.serviceCall(Transport.java:173)
      17. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
      18. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
      19. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
      20. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      21. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      22. java.lang.Thread.run(Thread.java:722)
      22 frames