No Hibernate Session bound to thread

No Hibernate Session bound to thread


Problem:
I am converting an application that uses HibernateDaoSupport in the DAOs to use POJOs instead.
Each pojo now must autowire a sessionFactory in order to hook into hibernate.

I am getting the following error when i try to getSession() on my sessionFactory:


No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

Solution:
add a OpenSessionInViewFilter to my web.xml and filter on * with it


visit link download

Popular posts from this blog

Difx Driver Package Install Error 1006 Brother

Hp Laserjet M1536dnf Mfp Scanner Driver For Linux

Camera Ov2680 Driver Windows 10