title: SLF4J issue while migrating application from JDK 8 to OpenJDK 11
body: <p>We've modified the code compatible to OpenJDK 11. When we try deploying the application via Tomcat, below error is encountered:</p>
  
  <pre><code>Caused by: java.lang.IllegalAccessError: class org.slf4j.LoggerFactory tried to access private field org.slf4j.impl.StaticLoggerBinder.SINGLETON (org.slf4j.LoggerFactory and org.slf4j.impl.StaticLoggerBinder are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @61526469)
                  at org.slf4j.LoggerFactory.&lt;clinit&gt;(LoggerFactory.java:60)
                  at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addStatus(StatusViaSLF4JLoggerFactory.java:32)
                  at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addInfo(StatusViaSLF4JLoggerFactory.java:20)
                  at ch.qos.logback.classic.servlet.LogbackServletContainerInitializer.onStartup(LogbackServletContainerInitializer.java:32)
                  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
                  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                  ... 38 more
  </code></pre>
  
  <p>Dependencies in pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
      &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
      &lt;version&gt;1.5.6&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
      &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
      &lt;version&gt;1.5.6&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>With OpenJDK 8, it was working fine.</p>
  
  <p>Tomcat version: apache-tomcat-9.0.27</p>