org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.

Stack Overflow | Mr.H. | 10 months 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

    Tomcat multiple Apps, ehcache wont work

    Stack Overflow | 10 months ago | Mr.H.
    org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
  2. 0

    Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given

    Stack Overflow | 2 years ago | henrycharles
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext-persistence.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
  3. 0

    Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given JPA+hibernate+Spring

    Stack Overflow | 2 years ago | henrycharles
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext-persistence.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Memcached with Spring for mutiple data sorce not working

    Stack Overflow | 1 year ago | Manu
    org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.
  6. 0

    Spring boot +Spring data JPA +Second-level cache giving mutate error

    Stack Overflow | 1 year ago | Manu
    org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.

    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. org.hibernate.cache.NoCacheRegionFactoryAvailableException

      Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the classpath.

      at org.hibernate.cache.internal.NoCachingRegionFactory.buildEntityRegion()
    2. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cache.internal.NoCachingRegionFactory.buildEntityRegion(NoCachingRegionFactory.java:83)
      2. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:364)
      3. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859)
      3 frames
    3. myGroup.sv.hibernate
      HibernateService.getSystemSession
      1. myGroup.sv.hibernate.HibernateDBServerInstance.getSessionFactory(Unknown Source)
      2. myGroup.sv.hibernate.HibernateDBServerInstance.getSystemSession(Unknown Source)
      3. myGroup.sv.hibernate.HibernateDBServerInstance.getSystemSession(Unknown Source)
      4. myGroup.sv.hibernate.HibernateService.getSystemSession(Unknown Source)
      4 frames
    4. myGroup.bwv.service
      BwvMandantService.getList
      1. myGroup.bwv.service.BwvMandantService.getList(Unknown Source)
      1 frame
    5. myGroup.bwv.bean
      AusschreibungBean.<init>
      1. myGroup.bwv.bean.ApplicationBean.getMandantenList(Unknown Source)
      2. myGroup.bwv.bean.AusschreibungBean.init(Unknown Source)
      3. myGroup.bwv.bean.AusschreibungBean.<init>(Unknown Source)
      3 frames
    6. 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:526)
      5. java.lang.Class.newInstance(Class.java:374)
      5 frames
    7. org.apache.myfaces
      Tomcat7AnnotationLifecycleProvider.newInstance
      1. org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.newInstance(Tomcat7AnnotationLifecycleProvider.java:54)
      1 frame
    8. Impl
      ManagedBeanBuilder.buildManagedBean
      1. org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:162)
      1 frame
    9. org.apache.myfaces
      ManagedBeanResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:303)
      2. org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:266)
      2 frames
    10. EL
      CompositeELResolver.getValue
      1. javax.el.CompositeELResolver.getValue(CompositeELResolver.java:66)
      1 frame
    11. org.apache.myfaces
      FacesCompositeELResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
      1 frame
    12. Impl
      VariableResolverImpl.resolveVariable
      1. org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:65)
      1 frame
    13. org.apache.myfaces
      VariableResolverToELResolver.getValue
      1. org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(VariableResolverToELResolver.java:96)
      1 frame
    14. EL
      CompositeELResolver.getValue
      1. javax.el.CompositeELResolver.getValue(CompositeELResolver.java:66)
      1 frame
    15. org.apache.myfaces
      FacesCompositeELResolver.getValue
      1. org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:142)
      1 frame
    16. Pax Jsp
      JspValueExpression.getValue
      1. org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:80)
      2. org.apache.el.parser.AstValue.getValue(AstValue.java:137)
      3. org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184)
      4. org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:115)
      4 frames
    17. JavaEE 7
      UIData.getValue
      1. javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:243)
      2. javax.faces.component.UIData.getValue(UIData.java:1153)
      2 frames
    18. Tomahawk
      HtmlTableRenderer.encodeChildren
      1. org.apache.myfaces.component.html.ext.HtmlDataTableHack.createDataModel(HtmlDataTableHack.java:957)
      2. org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.createDataModel(AbstractHtmlDataTable.java:1605)
      3. org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(HtmlDataTableHack.java:932)
      4. org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.getDataModel(AbstractHtmlDataTable.java:1597)
      5. org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(HtmlDataTableHack.java:103)
      6. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:366)
      7. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:214)
      8. org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:366)
      8 frames
    19. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:488)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:609)
      2 frames
    20. Tomahawk
      HtmlGridRendererBase.encodeEnd
      1. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:370)
      2. org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:194)
      2 frames
    21. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:618)
      3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
      4. javax.faces.component.UIComponent.encodeAll(UIComponent.java:614)
      4 frames
    22. org.apache.myfaces
      JspViewDeclarationLanguageBase.renderView
      1. org.apache.myfaces.shared_impl.view.JspViewDeclarationLanguageBase.actuallyRenderView(JspViewDeclarationLanguageBase.java:322)
      2. org.apache.myfaces.shared_impl.view.JspViewDeclarationLanguageBase.renderView(JspViewDeclarationLanguageBase.java:181)
      2 frames
    23. Impl
      ViewHandlerImpl.renderView
      1. org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:263)
      1 frame
    24. JavaEE 7
      ViewHandlerWrapper.renderView
      1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      1 frame
    25. Tomahawk
      ResourceViewHandlerWrapper.renderView
      1. org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:169)
      1 frame
    26. Impl
      LifecycleImpl.render
      1. org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85)
      2. org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
      2 frames
    27. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
      1 frame
    28. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    29. Tomahawk
      ExtensionsFilter.doFilter
      1. org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357)
      1 frame
    30. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    31. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    32. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
      10 frames
    33. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
      4 frames
    34. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      2 frames
    35. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    36. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame