title: Struts2 Error when Deploying java.lang.NoSuchMethodError: 'java.lang.String org.apache.logging.log4j.util.PropertiesUtil.getStringProperty
body: <p>I'm creating a basic Struts2 webApp and getting this error when I deploy to Tomcat 10. Has anyone seen this?</p>
  <p>How can I solve this?</p>
  <pre><code>java.lang.NoSuchMethodError: 'java.lang.String org.apache.logging.log4j.util.PropertiesUtil.getStringProperty(java.lang.String[], java.lang.String, org.apache.logging.log4j.util.Supplier)'
      at org.apache.logging.log4j.core.util.BasicAuthorizationProvider.&lt;init&gt;(BasicAuthorizationProvider.java:43)
      at org.apache.logging.log4j.core.config.ConfigurationFactory.authorizationProvider(ConfigurationFactory.java:215)
      at org.apache.logging.log4j.core.config.ConfigurationFactory.getInstance(ConfigurationFactory.java:188)
      at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:696)
      at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717)
      at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272)
      at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
  </code></pre>
  <p>web.xml &amp; struct.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 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xmlns:javaee=&quot;http://java.sun.com/xml/ns/javaee&quot;
           xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;
           xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;
           id=&quot;WebApp_ID&quot; version=&quot;2.5&quot;&gt;
      &lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
      &lt;/filter&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;/web-app&gt;
  </code></pre>
  <pre class="lang-java prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!DOCTYPE struts PUBLIC
  &quot;-//Apache Software Foundation//DTD Struts Configuration 2.5//EN&quot;
  &quot;http://struts.apache.org/dtds/struts-2.5.dtd&quot;&gt;
  
  &lt;struts&gt;
      &lt;package name=&quot;default&quot; extends=&quot;struts-default&quot;&gt;
          &lt;action name=&quot;myurl&quot; class=&quot;com.pro.basics.myActionClass&quot;&gt;
              &lt;result name=&quot;success&quot;&gt;/success.jsp&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>