jboss7与jdk8搭建报错

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/sunxuegang111/article/details/83793546

直接下载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.<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 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.<clinit>(__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.<clinit>(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.<init>(__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

 

 

展开阅读全文

jboss7 连接池配置 mysql 报错

03-19

我用的jboss-as-7.1.1.Final,部署好后。想用jboss的连接池进行数据库连接rn在 D:\jboss-as-7.1.1.Final\modules\com\mysql\jdbc\main下放置了rnmysql-connector-java-5.0.3-bin.jarrn添加了module.xml文件,文件内容:rnrnrnrnrn rnrnrnrnrnrnrn在D:\jboss-as-7.1.1.Final\standalone\configuration\standalone.xml文件里,rnprofile 标签下添加rnrnrnrnjdbc:mysql://192.168.1.104:3306/rulesrnmysqlrnTRANSACTION_READ_COMMITTEDrnrn1rn10rntruernrnrntestrntestrnrnrn32rntruernrnrnrnjdbc:mysql://192.168.1.104:3306/rulesrnmysqlrnrn1rn20rntruernrnrntestrntestrnrnrnrnrncom.mysql.jdbc.jdbc2.optional.MysqlXADataSourcernrnrnrnrn然后启动 standalone.bat 就报错rn15:58:01,343 信息 [org.jboss.modules] JBoss Modules version 1.1.1.GArn15:58:01,625 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GArn15:58:01,718 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starnrtingrn15:58:03,000 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boornt: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS01rn4676: Failed to parse configurationrn at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmrnlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Finrnal]rn at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jbossrn-as-server-7.1.1.Final.jar:7.1.1.Final]rn at org.jboss.as.controller.AbstractControllerService$1.run(AbstractContrrnollerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]rn at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_10-rc2]rnCaused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[277,1]rnMessage: JBAS014660: Duplicate subsystem declarationrn at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandalornneXml.java:890) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]rn at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandrnaloneXml.java:330) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]rn at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.jrnava:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]rn at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.jrnava:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]rn at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1rn10) [staxmapper-1.1.0.Final.jar:1.1.0.Final]rn at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:6rn9) [staxmapper-1.1.0.Final.jar:1.1.0.Final]rn at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmrnlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Finrnal]rn ... 3 morernrn15:58:03,015 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in arnn unrecoverable manner; exiting. See previous messages for details.rn15:58:03,046 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stornpped in 2msrn有遇到过这种问题不 论坛

没有更多推荐了,返回首页