0

Trying to deploying a war file of gradle.deploying is failing with error

org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory .

How to solve this issue?

sheldonzy
  • 5,505
  • 9
  • 48
  • 86
Vijay J
  • 93
  • 8
  • Possible duplicate of [wildfly 10: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory](https://stackoverflow.com/questions/35533847/wildfly-10-java-lang-classcastexception-org-dom4j-documentfactory-cannot-be-ca) – James R. Perkins Aug 23 '17 at 21:33
  • @JamesR.Perkins In my build.gradle there is nothing like dom4j.it is only present in the generated war file – Vijay J Aug 24 '17 at 06:50
  • 1
    I think you have to remove the transitive dependency on dom4j in your gradle build. It shouldn't end in your war file – ehsavoie Aug 24 '17 at 13:41

0 Answers0