thank you... but i changed this i am getting this error.....HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalStateException: No value for key [org.hibernate.internal.SessionFactoryImpl@29375882] bound to thread [http-bio-2016-exec-6]
You are using hibernate4 SessionFactory and hibernate5 TransactionManager. I think that's causing this issue. Try and use the same version and see if it works...