title: Log4j giving ClassCastException about slf4j LoggerContext
body: <p>I have configured log4j in my Java application and I am getting this </p>
  
  <pre><code>exception : java.lang.ClassCastException: 
    org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to 
    org.apache.logging.log4j.core.LoggerContext.
  </code></pre>
  
  <p>I already tried after remove <code>log4j-slf4j-impl-2.2.jar</code> and <code>log4j-to-slf4j-2.2.jar</code> but It didn't work it out.</p>