you are declaring bean of type org.springframework.orm.hibernate4.LocalSessionFactoryBean in your springmvc-servlet.xml file and trying to autowire org.hibernate.SessionFactory in UsersDAOImpl class and also you are using both autowired and setter based dependency injection for the same property(sessionFactory), I can't understand why.
posted 4 years ago
I see your point about autowired and setter dependency injection. I deleted these two beans.
My new springmvc-servlet.xml is this:
However error did not change.
But I did not understand "org.springframework.orm.hibernate4.LocalSessionFactoryBean" and "org.hibernate.SessionFactory" issue. What should I do? SessionFactory is only importted by org.hibernate.SessionFactory