JDK 11 Multi-Release jar failing in JBoss EAP 7.2

Solution Unverified - Updated

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.2

Issue

  • JDK 11 Multi-Release jar failing in JBoss EAP 7.2
Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found.
	at deployment.log4j-2.9.0.war//org.apache.logging.log4j.LogManager.callerClass(LogManager.java:525)
	at deployment.log4j-2.9.0.war//org.apache.logging.log4j.LogManager.getLogger(LogManager.java:550)
	at deployment.log4j-2.9.0.war//org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
	at deployment.log4j-2.9.0.war//reproducer.Init.<clinit>(Init.java:11)
	... 42 more

Resolution

Apply CP2 or later when available

Root Cause

Content from issues.jboss.org is not included.JBEAP-16624 - JDK 11 Multi-Release jars - Classes for newer versions are not loaded and VFSResourceLoader doesn't take into account the Multi-Release manifest attribute value

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.