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两个文件!
分享到:
相关推荐
主要为大家详细介绍了Maven项目部署到Jboss出现Failed to create a new SAX parser的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
Jboss启动报Failed to parse WEB-INFweb.xml; - nested throwable错误
JBoss has always had a unique way of dealing with classloading, and the new classloading layer that comes with Microcontainer is no exception (keep in mind that you can use Microcontainer without ...
jboss 5的详细说明。对在jboss5上进行开发来说是很好的参考资料。
官方发布的Jboss解决方案 REDHat公司2010年度最新资料
JBoss_Enterprise_Application_Platform-5-Hibernate_Entity_Manager_Reference_Guide-en-US
The latest JBoss AS 5 Development Guide book, very practical to any developer who is or is going to use JBoss AS
JBoss5部署原理 基本可以了解 具体的可以参考官方文档
Apache2.2+JBOSS 5 在LIUXN下的集群配置
jdk1.6与jboss5.x冲突问题的解决方法
很详细的介绍Jboss5.1在上传war项目时出错解决方案以及一些技巧,不敢自大,内容实在!
jboss服务器,javaee容器,分布式
Migrating Jboss ESB from hsql to mysql
JBOSS,javaee,分布式,java web容器
JBoss AS 5 Development
jboss5 as developemnt是一本很好的书,基本上包括了从entitybean,sessionbean,messagedrivenbean,managedbean的开发。 从ejb工程,到jsf2.0工程,很好的示例,手把手交的。底层连接数据库,开发工具是eclipse ...
jboss漏洞和struts漏洞的详细解决方法
way to start a JBoss server cluster is to start several JBoss instances on the same local network, using the run -c all command for each instance. Those server instances, all started in the all ...
in 7.1.1 we have included much reworked web subsystem but unfortunaly I missed a bit that coused all jsp configuration to be ignored. That bug was fixed soon after 7.1.1 was released and is now part ...