javax.xml.parsers.FactoryConfigurationError running JBoss AS 7.1 with Java 7 update 171

时光怂恿深爱的人放手 提交于 2020-12-27 08:11:38

问题


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.

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)

The full stack is here.


回答1:


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.




回答2:


Are you sure you are using a jdk 1.7?

This issue can happen when you try to start Jboss with java version > 1.7, try to check your JDK installation folder.




回答3:


Environment as Follow: Jboss: JBoss AS 7.1.1.Final, OS: Ubuntu 16.04.1, and, java: 1.8.0_181.

I have downloaded jboss-modules-1.1.5.GA.jar and replace to jboss-modules.jar at JBOSS_HOME. It worked for me.




回答4:


I had same issue 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 comes by default in JBoss AS 7.1.1.Final ,
So i downloaded jboss-modules-1.1.5.GA.jar , renamed it as jboss-modules.jar
and replaced it with original jboss-modules.jar.



来源:https://stackoverflow.com/questions/48403832/javax-xml-parsers-factoryconfigurationerror-running-jboss-as-7-1-with-java-7-upd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!