Javax.xml.parsers.FactoryConfigurationError runs JBoss AS 7.1 with Java 7 171 update

Upgrading Java from 7u161 to 7u171 prevents the launch of JBoss AS 7.1.1.Final . I know that JBoss AS 7.1.1 is an EOL, but for compatibility reasons, we still need to run this version.

At the very start of the run, a NullPointerException is thrown in some JBoss method. The following is an exception:

Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory could not be instantiated: java.lang.NullPointerException [...] Caused by: java.lang.NullPointerException at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:94) 

Here is the full stack .

+15
source share
4 answers

Can you try jboss-modules.jar (found in the root folder of the jboss-as binary distribution) to 1.1.5.GA ? The version of jboss-modules that ships with jboss-7.1.1.Final is 1.1.1.GA , and it has several problems with the initialization order and multiple initialization that may cause the problem.

+48
source

The environment is as follows: Jboss: JBoss AS 7.1.1.Final, OS: Ubuntu 16.04.1 and java: 1.8.0_181.

I downloaded jboss-modules-1.1.5.GA.jar and replaced jboss-modules.jar with JBOSS_HOME. It worked for me.

+1
source

I had the same problem on my Production Server

My environment: -

 JBoss AS 7.1.1.Final Red Hat Enterprise Linux 6.5 java: 1.7.0_181 

Even I had jboss-modules.jar, which by default runs in JBoss AS 7.1.1.Final,
So I downloaded jboss-modules-1.1.5.GA.jar , renamed it jboss-modules.jar
and replaced it with the original jboss-modules.jar.

+1
source

Are you sure you are using jdk 1.7?

This problem may occur when trying to run Jboss with java version> 1.7, try checking the JDK installation folder.

0
source

Source: https://habr.com/ru/post/1274895/


All Articles