DocumentException « cfg « JPA Q&A





1. Not so Strange error: Could not parse [..] hibernate.cfg.xml [..] Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory    stackoverflow.com

I am deploying my application to Tomcat 6.0.20. Application uses Hibernate as ORM, Spring, and JSF for web-tier. I also made simple runner from main() method to test Spring-Hibernate collaboration. And it does ...