I am developing a web service application but sessionFactory bean is not creating because of below error. I can\'t see duplicate or conflict version of dom4j jar. I tried va
Thanks to Hohenheim to point out the version issue.
Hibernate core 5.1.0.Final include dom4j-1.6.1 jar which throws this error. To fix this, need to exclude dom4j-1.6.1 from hibernate-core and include dom4j-1.6 in your pom.
I am not able find the exact reason why this is happening.
This is how I excluded dom4j from pom in hibernate dependency.
org.hibernate
hibernate-core
5.1.0.Final
jta
javax.transaction
org.slf4j
slf4j-api
dom4j
dom4j