Getting classloading issues when upgrading to a CP release of JBoss EAP
Issue
On previous versions of JBoss EAP 6 before CP releases were introduced we included dependencies to classes from modules such sun.jdk.
For example, on EAP 6.2.2 and EAP 6.3.1 I would add a dependency to a JDK Class by adding an extra entry such as <path name="sun/invoke"></path> to modules/system/layers/base/sun/jdk/main/module.xml
On EAP 6.3.2 this breaks and no longer works. Despite the entry in sun.jdk module.xml we get the following error
IllegalArgumentException: interface sun.invoke.WrapperInstance is not visible from class loader
at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:616)
Environment
- Red Hat JBoss Enterprise Application Platform 6.3.2+
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.
