IllegalAccessError when initializing log4j extras Logger on EAP6
Issue
- The following error when trying to initiate the
LoggerwithDOMConfigurator.configureAndWatch():
java.lang.IllegalAccessError: tried to access class org.apache.log4j.xml.XMLWatchdog from class org.apache.log4j.xml.DOMConfigurator
- The following error when trying to initiate the
Loggerthat uses log4j extras functionality (e.g.TimeBasedRollingPolicy) withDOMConfigurator.configureAndWatch():
java.lang.IllegalAccessError: tried to access class org.apache.log4j.xml.DOMConfigurator$1 from class org.apache.log4j.xml.DOMConfigurator
Environment
Red Hat JBoss Enterprise Application Platform 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.