JBoss 5 如何解决 Failed to create a new SAX parser

JBoss 5 启动报错了:
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
怎么解决?

找了网上的回答是删除项目的lib文件夹下面的三个文件:xml-apis.jar、xerces-2.4.0.jar、xercesImpl.jar

可是我并没有发布项目,只是安装好jboss就启动一下看看。也没有找到所谓的这几个文件啊。

请帮帮忙看看怎么解决。
代码:
---------------------------------------
11:29:18,546 INFO [ServerImpl] Server Temp Deploy Dir: D:\jboss-5.1.0.GA\server\default\tmp\deploy
11:29:19,687 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
Failed to boot JBoss:
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:50)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:97)
at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:56)
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
... 6 more
Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
... 8 more
11:29:19,765 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
11:29:19,796 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM

解决办法:删掉项目中的xerces-2.6.2.jar和xml-apis.jar两个文件!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值