How to make javax.* classes visible to a custom JBoss Module in JBoss EAP 6
Issue
- I have created a module for the Grails jars and was having classloading problems related to java classes within the rt.jar file. I added this to the module.xml file in the dependencies section:
<system export="true">
<paths>
<path name="org/xml/sax"/>
<path name="org/xml/sax/helpers"/>
<path name="org/w3c/dom"/>
<path name="javax/xml/parsers"/>
<path name="javax/xml/transform"/>
</paths>
</system>
Is there a better way to get these classes on the class path?
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
