Hello,
We are attempting to get our web application using Log4j2 to run under Wildfly 26.1.1.Final. Currently we are receiving this exception on startup
Caused by: java.lang.ClassCastException: org.jboss.logmanager.log4j.JBossLoggerContext incompatible with org.apache.logging.log4j.core.LoggerContext
We have attempted to exclude the various JBoss logging used in Wildfly using the jboss-deployment-structure.xml based on many of the explained comments on StackOverflow, yet we have not yet found a solution.
So how does everyone else use Log4j2 with Wildfly 26?