Error using dom4j module in JBoss EAP 6

Solution Verified - Updated -


  • We are trying to use dom4j module available with JBoss EAP 6
  • We are getting the following exception for the following statement
Document doc ...
Element element ...
DocumentSource docSource = new DocumentSource(element);
  • Exception:
java.lang.IllegalAccessError: tried to access class from class
  • The same code is working if we bundle dom4j-1.6.1.jar in our application (this is not from <module name="org.dom4j" slot="main" /> )


JBoss Enterprise Application Platform (EAP) 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content