com.myaapp.MyappListener

java.lang.ExceptionInInitializerError

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • com.myaapp.MyappListener: java.lang.ExceptionInInitializerError at com.myapp.core.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:82)[cips-core-10.0.0-HEAD-SNAPSHOT.jar:] at com.myapp.MyappListener.contextInitialized(MyappListener.java:74)[classes:] at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)[jbossweb-7.0.17.Final-redhat-1.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)[jbossweb-7.0.17.Final-redhat-1.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)[jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_25] at java.lang.Thread.run(Thread.java:724)[rt.jar:1.7.0_25] Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor] at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:186)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:262)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1746)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at com.myapp.core.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:75)[cips-core-10.0.0-HEAD-SNAPSHOT.jar:] ... 9 more Caused by: 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 class name to property hibernate.cache.region.factory_class (and make sure the second level cache provider, hibernate-infinispan, for example, is available in the classpath). at org.hibernate.cache.internal.NoCachingRegionFactory.buildTimestampsRegion(NoCachingRegionFactory.java:87)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.cache.spi.UpdateTimestampsCache.<init>(UpdateTimestampsCache.java:63)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:72)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:40)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:35)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:91)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176)[hibernate-core-4.1.6.Final-redhat-3.jar:4.1.6.Final-redhat-3] ... 14 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

No Bugmate found.