JBoss EAP 7.4 log4j 2 API

Solution Verified - Updated -

Issue

  • When log4j 2 api was added in EAP 7?
  • How to use it?
  • How to not use it? (exclude it)
  • Migrating to EAP 7.4 , our application which packages Apache Log4j2 is having classloading errors such as:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.core.LoggerContext
    at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:254)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content