I use Spring MVC and want to use openSessionInViewFilter
My configuration as below
If I didn't register ContextLoaderListener , it will occur no ContextLoaderListener registered exception.
But if I register contextLoaderListener , it should specify contextConfigLocation for hibernate sessionFactory.
But the hibernate sessionFactory had been load in the spring mvc(in web.xml line 09).
Because RoleCrud refer HibernateTemplate that defined in the hibernate-conf.xml.
So these three configuration(crud-conf.xml,mvc-conf.xml,hibernate-conf.xml) should be load together for Spring to know all beans.
How do I solve the problem that the hibernate-conf.xml load in these two place , and this will let Spring openSessionInViewFilter get another problem and inactive.