I am developing Spring MVC + POI + Hibernate example by taking a reference from link : https://krams915.blogspot.in/2011/02/spring-3-apache-poi-hibernate-creating.html?showC
A lots of modification needs to be done in order to use the latest dependencies. I used Spring version 4.3.1.RELEASE and Hibernate version 4.3.11.Final and also used latest version of dependencies for others too.
Here you need to change below in hibernate-context.xml
For hibernate 3.0
For Hibernate 4.0.x
Also: For hibernate 3.0
For Hibernate 4.0
IMP Note:
Hibernate 3.5 and onward contains Hibernate Annotations. : You should remove the dependency on hibernate-annotations.
The latest pom.xml
UTF-8
1.8
4.3.1.RELEASE
4.3.11.Final
2.1
5.1.39
3.6
3.20.0-GA
0.9.1.2
1.0.2
1.1.2
1.7.6
org.springframework
spring-webmvc
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-orm
${spring.version}
commons-digester
commons-digester
${commons-digester.version}
commons-collections
commons-collections
3.2.1
org.apache.poi
poi
${poi.version}
cglib
cglib-nodep
3.2.4
org.javassist
javassist
${javassist.version}
org.hibernate
hibernate-core
${hibernate.version}
javax.persistence
persistence-api
${persistence-api-version}
c3p0
c3p0
${c3p0.version}
mysql
mysql-connector-java
${mysql.version}
org.slf4j
slf4j-api
${slf4j.version}
org.slf4j
jcl-over-slf4j
${slf4j.version}
ch.qos.logback
logback-classic
${logback.version}
javax.servlet
javax.servlet-api
3.1.0
jstl
jstl
1.1.2
taglibs
standard
1.1.2
jar
compile
junit
junit
4.12
test