javax.xml.parsers.FactoryConfigurationError 使用 Java 7 更新 171 运行 JBoss AS 7.1 [英] javax.xml.parsers.FactoryConfigurationError running JBoss AS 7.1 with Java 7 update 171
问题描述
将 Java 从 7u161 升级到 7u171 会阻止 JBoss AS 7.1.1.Final 启动.我知道 JBoss AS 7.1.1 已停产,但出于兼容性原因,我们仍然需要运行此版本.
Upgrading Java from 7u161 to 7u171 prevents JBoss AS 7.1.1.Final from starting. I know JBoss AS 7.1.1 is EOL but for compatibility reasons, we still need to run this version.
在启动的早期,一些 JBoss 方法中出现 NullPointerException.以下是例外:
Very early in the startup, a NullPointerException occurs in some JBoss method. Following is the 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)
完整堆栈在这里.
推荐答案
Could you try upgrade jboss-modules.jar
(在 jboss-as 二进制发行版的根文件夹中找到)到 1.1.5.GA
?jboss-7.1.1.Final
附带的 jboss-modules 版本是 1.1.1.GA
,它在初始化顺序和多重初始化方面存在一些问题可能是导致问题的原因.
Could you try upgrading jboss-modules.jar
(found in the root folder of the jboss-as binary distribution) to 1.1.5.GA
?
The version of jboss-modules which comes with jboss-7.1.1.Final
is 1.1.1.GA
and it has a few issues with initialisation order and multiple-initialisation which could be causing the issue.
这篇关于javax.xml.parsers.FactoryConfigurationError 使用 Java 7 更新 171 运行 JBoss AS 7.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!