jboss7与jdk8搭建报错

直接下载jdk8和jboss7

jdk8下载地址:

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

jboss7下载地址:

http://jbossas.jboss.org/downloads

 

然后启动后报错:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory could not be instantiated: java.lang.NullPointerException
    at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:204)
    at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152)
    at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:232)
    at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
    at jdk.xml.internal.JdkXmlUtils.getSAXFactory(JdkXmlUtils.java:235)
    at jdk.xml.internal.JdkXmlUtils.(JdkXmlUtils.java:78)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.(SchemaParsingConfig.java:319)
    at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.(SchemaParsingConfig.java:254)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.(XSDHandler.java:480)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.(XSDHandler.java:487)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.(XMLSchemaLoader.java:357)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.(XMLSchemaLoader.java:292)
    at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.(XMLSchemaFactory.java:97)
    at javax.xml.validation.SchemaFactoryFinder._newFactory(SchemaFactoryFinder.java:232)
    at javax.xml.validation.SchemaFactoryFinder.newFactory(SchemaFactoryFinder.java:146)
    at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:213)
    at __redirected.__SchemaFactory.(__SchemaFactory.java:66)
    at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:88)
    at org.jboss.modules.Module$1.run(Module.java:85)
    at org.jboss.modules.Module$1.run(Module.java:72)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.modules.Module.(Module.java:72)
    at org.jboss.modules.Main.main(Main.java:255)
Caused by: java.lang.NullPointerException
    at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:94)
    at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:87)
    at __redirected.__SAXParserFactory.(__SAXParserFactory.java:102)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:192)

 

查看相关文档说是啥BUG,解决方案为用下载的jboss-modules-1.1.5.GA.jar替换原来主目录下的jboss-modules.jar并重名为jboss-modules.jar

jboss-modules-1.1.5.GA.jar的下载地址为

http://www.java2s.com/Code/Jar/j/Downloadjbossmodules115gasourcesjar.htm

 

 

你可能感兴趣的:(jboss起动)