Use JAXP Implementation Provided by the JDK in JBoss EAP
Issue
- Disable the implementation included with the application server
-
Applications throws exception:
java.lang.IllegalArgumentException: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized. at org.apache.xerces@2.12.0.SP03-redhat-00001//org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:144) at __redirected.__DocumentBuilderFactory.setAttribute(__DocumentBuilderFactory.java:125)
Environment
- Red Hat JBoss Enterprise Application Platform (JBoss EAP) 6 or 7
- Java/JDK (Java Development Kit)
- 8
- For Java 11 or later, see Root Cause.
- Java API for XML Processing (JAXP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.