Error using dom4j module in JBoss EAP 6
Issue
- 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 org.dom4j.io.DocumentInputSource from class org.dom4j.io.DocumentSource
- 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" />
)
Environment
JBoss Enterprise Application Platform (EAP) 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.