title: How to configure log4j2 with Tomcat 8.5.15
body: <p>I have log4j2 jars under $CATALINA_HOME/lib:</p>
  
  <ul>
  <li>log4j-api-2.10.0.jar </li>
  <li>log4j-core-2.10.0.jar </li>
  <li>log4j-jul-2.10.0.jar </li>
  </ul>
  
  <p>export JAVA_OPTS="${JAVA_OPTS} -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"</p>
  
  <p>In catalina.properties I've got common classloader and I tried to add log4j-jul-2.10.0.jar again even if it is already under the CATALINA_HOME/lib, but no success.</p>
  
  <p>common.loader="${catalina.base}/lib","${catalina.base}/lib/<em>.jar","${catalina.home}/lib","${catalina.home}/lib/</em>.jar","/opt/tomcat/apache-tomcat-8.5.15/lib/log4j-jul-2.10.0.jar"</p>
  
  <p>I have deleted logging.properties under Tomcat and add a new log4j2.xml to path</p>
  
  <p><strong>ERRORMESSAGE:</strong></p>
  
  <p>Could not load Logmanager "org.apache.logging.log4j.jul.LogManager"
  java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager</p>
  
  <p>Any idea why LogManager is still missing or should I use some other jars instead. In another messages they are speaking juli.jar and extras, but in their case they have older Tomcat version, 6 or 7.</p>