title: Getting errors after attempting to update log4j and remove display tag
body: <p>I've recently had to update my log4j dependency as the old one was being pulled in by displaytag. I've converted all of the necessary tables, and things seem to be running fine on the front end, but I'm receiving the following error in the log:</p>
  <pre><code>Exception while visiting META-INF/versions/9/module-info.class of size 703 
  Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class of size 7373
  Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/ProcessIdUtil.class of size 778
  Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/Base64Util.class of size 862
  Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/StackLocator$FqcnCallerLocator.class of size 1894
  Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/internal/DefaultObjectInputFilter.class of size 2913
  
  
  
  
  [2022-02-24T11:06:07.096-0600] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=50 _ThreadName=deployment-jar-scanner] [timeMillis: 1645722367096] [levelValue: 1000] [[
    Exception while visiting META-INF/versions/9/module-info.class of size 703
  java.lang.IllegalArgumentException
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:170)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)
          at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
          at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
          at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  ]]
  
  [2022-02-24T11:06:07.098-0600] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=50 _ThreadName=deployment-jar-scanner] [timeMillis: 1645722367098] [levelValue: 1000] [[
    Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class of size 7373
  java.lang.IllegalArgumentException
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:170)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)
          at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
          at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
          at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  ]]
  
  [2022-02-24T11:06:07.106-0600] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=50 _ThreadName=deployment-jar-scanner] [timeMillis: 1645722367106] [levelValue: 1000] [[
    Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/ProcessIdUtil.class of size 778
  java.lang.IllegalArgumentException
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:170)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)
          at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
          at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
          at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  ]]
  
  [2022-02-24T11:06:07.113-0600] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=50 _ThreadName=deployment-jar-scanner] [timeMillis: 1645722367113] [levelValue: 1000] [[
    Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/Base64Util.class of size 862
  java.lang.IllegalArgumentException
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:170)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)
          at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
          at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
          at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  ]]
  
  [2022-02-24T11:06:07.115-0600] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=50 _ThreadName=deployment-jar-scanner] [timeMillis: 1645722367115] [levelValue: 1000] [[
    Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/StackLocator$FqcnCallerLocator.class of size 1894
  java.lang.IllegalArgumentException
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:170)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)
          at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
          at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
          at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  ]]
  
  [2022-02-24T11:06:07.118-0600] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=50 _ThreadName=deployment-jar-scanner] [timeMillis: 1645722367118] [levelValue: 1000] [[
    Exception while visiting META-INF/versions/9/org/apache/logging/log4j/util/internal/DefaultObjectInputFilter.class of size 2913
  java.lang.IllegalArgumentException
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:170)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:153)
          at org.glassfish.hk2.external.org.objectweb.asm.ClassReader.&lt;init&gt;(ClassReader.java:424)
          at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:359)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:165)
          at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:127)
          at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:345)
          at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:68)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:304)
          at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:293)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  ]]
  </code></pre>
  <p>Below is my pom.xml:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;name&gt;username-service&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;endorsed.dir&gt;${project.build.directory}/endorsed&lt;/endorsed.dir&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
      
  &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.dakuupa&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-crud-framework&lt;/artifactId&gt;
              &lt;version&gt;1.0.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax&lt;/groupId&gt;
              &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
              &lt;version&gt;6.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
              &lt;version&gt;2.12.4&lt;/version&gt;
          &lt;/dependency&gt;
                  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;2.12.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- above 2 dependencies are for log4j JDK 7 --&gt;   
  
      
          &lt;!-- below 2 dependencies for removing server warnings in glassfish about slfj4 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-to-slf4j&lt;/artifactId&gt;
              &lt;version&gt;2.12.4&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;1.7.25&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                      &lt;compilerArguments&gt;
                          &lt;endorseddirs&gt;${endorsed.dir}&lt;/endorseddirs&gt;
                      &lt;/compilerArguments&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;validate&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;copy&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;outputDirectory&gt;${endorsed.dir}&lt;/outputDirectory&gt;
                              &lt;silent&gt;true&lt;/silent&gt;
                              &lt;artifactItems&gt;
                                  &lt;artifactItem&gt;
                                      &lt;groupId&gt;javax&lt;/groupId&gt;
                                      &lt;artifactId&gt;javaee-endorsed-api&lt;/artifactId&gt;
                                      &lt;version&gt;7.0&lt;/version&gt;
                                      &lt;type&gt;jar&lt;/type&gt;
                                  &lt;/artifactItem&gt;
                              &lt;/artifactItems&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  <p>And my web.xml:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;web-app version=&quot;2.5&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&gt;
      &lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;org.apache.tiles.web.startup.TilesListener&lt;/listener-class&gt;
      &lt;/listener&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
      &lt;session-config&gt;
          &lt;session-timeout&gt;30&lt;/session-timeout&gt;
      &lt;/session-config&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
      &lt;error-page&gt;
          &lt;error-code&gt;500&lt;/error-code&gt;
          &lt;location&gt;/error.jsp&lt;/location&gt;
      &lt;/error-page&gt;
      &lt;jsp-config&gt;
      &lt;/jsp-config&gt;
      &lt;security-constraint&gt;
          &lt;display-name&gt;SecurityConstraintLoginRequired&lt;/display-name&gt;
          &lt;web-resource-collection&gt;
              &lt;web-resource-name&gt;AllWebResources&lt;/web-resource-name&gt;
              &lt;description/&gt;
              &lt;url-pattern&gt;/admin/*&lt;/url-pattern&gt;
              &lt;url-pattern&gt;/secure/*&lt;/url-pattern&gt;
              &lt;url-pattern&gt;/personsearch/*&lt;/url-pattern&gt;
              &lt;url-pattern&gt;/JsonSearch&lt;/url-pattern&gt;
          &lt;/web-resource-collection&gt;
          &lt;auth-constraint&gt;
              &lt;description&gt;AuthenticationConstraint&lt;/description&gt;
              &lt;role-name&gt;userRole&lt;/role-name&gt;
          &lt;/auth-constraint&gt;
      &lt;/security-constraint&gt;
      &lt;login-config&gt;
          &lt;auth-method&gt;BASIC&lt;/auth-method&gt;
          &lt;realm-name&gt;ldap&lt;/realm-name&gt;
      &lt;/login-config&gt;
      &lt;security-role&gt;
          &lt;role-name&gt;userRole&lt;/role-name&gt;
      &lt;/security-role&gt;
  &lt;/web-app&gt;
  </code></pre>
  <p>I'm not used to posting on here, so please let me know if any more information is needed to help.</p>