2 Replies Latest reply on Dec 12, 2008 9:23 AM by Stefan Lecho

    Loader constraints violated when linking org/dom4j/XPath

    Stefan Lecho Newbie

      When deploying a Spring-based application in JBoss v4.2.2.GA, I'm getting an error: "java.lang.LinkageError: loader constraints violated when linking org/dom4j/XPath class". The EAR contains in its lib directory the dom4j-1.6.1.jar.

      I've removed dom4j.jar from the server/default/lib directory but the problem remains. Any ideas on how to solve this issue ?

      PS: When deploying in JBoss v4.0.4.GA, the problem does not occur.

      Regards, Stefan Lecho.