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两个文件!
http://dong.hongjun888.blog.163.com/blog/static/20812084201001131822146/
------解决方案--------------------------------------------------------
同样的问题,同样的方法试了解决不了。