tomcat deployment init db error
There is an exception in init script:
17:18:38 [localhost-startStop-1] ERROR lcsb.mapviewer.bean.utils.StartupBean - Problem running init script...
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:134) ~[spring-orm-4.2.0.RELEASE.jar:4.2.0.RELEASE]
at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1024) ~[hibernate-core-4.1.0.Final.jar:4.1.0.Final]
at lcsb.mapviewer.persist.DbUtils.getSessionForCurrentThread(DbUtils.java:151) ~[persist-1.0.jar:?]
at lcsb.mapviewer.persist.dao.BaseDao.getSession(BaseDao.java:115) ~[persist-1.0.jar:?]
at lcsb.mapviewer.persist.dao.BaseDao.getAll(BaseDao.java:264) ~[persist-1.0.jar:?]
at lcsb.mapviewer.bean.utils.StartupBean.setInterruptedProjectsStatuses(StartupBean.java:101) ~[classes/:?]
at lcsb.mapviewer.bean.utils.StartupBean.init(StartupBean.java:69) [classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]
at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:117) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.vendor.WebContainerInjectionProvider.invokePostConstruct(WebContainerInjectionProvider.java:99) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:256) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:255) [jsf-impl-2.1.7.jar:2.1.7-SNAPSHOT]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5108) [catalina.jar:7.0.81]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633) [catalina.jar:7.0.81]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) [catalina.jar:7.0.81]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1009) [catalina.jar:7.0.81]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:985) [catalina.jar:7.0.81]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) [catalina.jar:7.0.81]
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127) [catalina.jar:7.0.81]
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2020) [catalina.jar:7.0.81]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_151]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]