title: after update Apache POI 4.0 - Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized
body: <p>After updating Apache POI from 3.17 to 4.0.0 i'm getting on line:</p>
  
  <p><code>OPCPackage pck = OPCPackage.open(this.getTemplate());</code></p>
  
  <p>an exception:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
       at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:144)
       at __redirected.__DocumentBuilderFactory.setAttribute(__DocumentBuilderFactory.java:125)
       at org.apache.poi.ooxml.util.DocumentHelper.trySetXercesSecurityManager(DocumentHelper.java:143)
       at org.apache.poi.ooxml.util.DocumentHelper.&lt;clinit&gt;(DocumentHelper.java:108)
       at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:392)
       at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.&lt;init&gt;(ContentTypeManager.java:104)
       at org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.&lt;init&gt;(ZipContentTypeManager.java:54)
       at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:258)
       at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:725)
       at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:275)
       at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:181)
  </code></pre>
  
  <p>They say in <a href="https://stackoverflow.com/questions/25453042/how-to-disable-accessexternaldtd-and-entityexpansionlimit-warnings-with-logback">How to disable accessExternalDTD and entityExpansionLimit warnings with logback</a> that i should exclude xerces, but i had this already:</p>
  
  <pre><code>  &lt;dependency&gt;
       &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
       &lt;artifactId&gt;poi&lt;/artifactId&gt;
       &lt;version&gt;4.0.0&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
       &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
       &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
       &lt;version&gt;4.0.0&lt;/version&gt;
       &lt;exclusions&gt;
          &lt;exclusion&gt;
             &lt;groupId&gt;xml-apis&lt;/groupId&gt;
             &lt;artifactId&gt;xml-apis&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
             &lt;groupId&gt;xerces&lt;/groupId&gt;
             &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
          &lt;/exclusion&gt;
       &lt;/exclusions&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>My setup: </p>
  
  <ul>
  <li>JDK 8 </li>
  <li>WildFly 14</li>
  </ul>
  
  <p>Going back to 3.17 fixes the issue.</p>