Deprecation of sun.jdk JBoss Module in JBoss EAP 8
Issue
-
The module
sun.jdk
is now deprecated in EAP 8. -
Migrating application from EAP 7 / 6 to EAP 8, application throwing ClassNotFoundException looking for sun.misc.Unsafe
Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe from [Module "deployment.example.war" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:200)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
... 55 more
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.