I'm currently trying to run a web application on JBoss 5.1.
This web app is running fine on Apache Geronimo 2.1.4. I have added the jboss specific configuration files : jboss-web.xml to declare security configuration and I have added the needed realm and datasource.
This web app contains quite a lot of libraries : spring, hibernate, solr ... for about 70 Mbytes.
I get the following error when I deploy it :
ERROR [JBossContextConfig] XML error parsing: jboss.web/localhost/context.xml.default
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
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)
... 98 more
I have not provided any context.xml file. From the messages I have read, it seems to be a kind of configuration conflict ?
How to solve this ?
It may help anyone who face the same ces error stack, I solved this by analyzing the dependencies of the project and discovering that several Xerces jar where included in the web app (lib folder). These Xerces jar where conflicting with JBoss own shared libraries.
After removing these libraries, the web app runs fine.
|Retrieving data ...|