JAXP Issue after updating JDK to 1.8u161 in JBoss EAP

Solution Verified - Updated -

Issue

I am getting below error in the automation script (snippet below) when using JDK1.8.0_181, it works fine with JDK1.8.0_112

import org.jboss.as.cli.scriptsupport.*
cli = CLI.newInstance()
Caught: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory not found
javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory not found
        at jdk.xml.internal.JdkXmlUtils.getSAXFactory(JdkXmlUtils.java:235)
        at jdk.xml.internal.JdkXmlUtils.<clinit>(JdkXmlUtils.java:78)
        at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.<init>(SchemaParsingConfig.java:319)
        at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.<init>(SchemaParsingConfig.java:254)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.<init>(XSDHandler.java:480)
        at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.<init>(XSDHandler.java:487)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.java:357)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.java:292)
        at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.<init>(XMLSchemaFactory.java:97)
        at __redirected.__SchemaFactory.<clinit>(__SchemaFactory.java:65)
        at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:94)
        at org.jboss.modules.Module$1.run(Module.java:137)
        at org.jboss.modules.Module$1.run(Module.java:124)
        at org.jboss.modules.Module.<clinit>(Module.java:124)
        at org.jboss.as.cli.embedded.EmbeddedControllerHandlerRegistrar.<clinit>(EmbeddedControllerHandlerRegistrar.java:71)
        at org.jboss.as.cli.impl.CommandContextImpl.initCommands(CommandContextImpl.java:631)
        at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:339)
        at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
        at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
        at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
        at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
        at org.jboss.as.cli.scriptsupport.CLI$newInstance.call(Unknown Source)
        at jbStartStatusStop.run(jbStartStatusStop.groovy:18)
Caused by: java.lang.ClassNotFoundException: __redirected/__SAXParserFactory
        ... 23 more

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.