org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/secure-processing in JBoss EAP
Issue
We are getting this error trying to use a JAXP SAX parser in JBoss EAP:
SEVERE [com.sun.xml.bind.v2.util.XmlFactory] (Thread-112) null: org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/secure-processing
at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:128)
at __redirected.__SAXParserFactory.setFeature(__SAXParserFactory.java:146)
at com.sun.xml.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:128)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader(UnmarshallerImpl.java:154)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:136)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:193)
at com.jboss.examples.TestXml.toObject(TestXml.java:12)
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.