[SOLVED] Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

If you’re getting this error:

This might be due to some conflicts in pom.xml. Maybe you’re using a parent dependency in section which contradicts with one of your dependencies declared below.

Leave a Reply

Your email address will not be published. Required fields are marked *