Blog ‐
Posted on 23.08.2009
by simone giannecchini
When deploying geoserver.war an a new installation of JBoss AS 5.x, most probably you will get an error caused by a conflict on the Xerces configuration classes.java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfigurationThe error basically depends by the ClassLoader error which tries to instantiate the GeoServer XML parsing libraries by using the JBoss xerces interfaces instead.A possible quick solution to avoid the conflict and allowing GeoServer working fine on JBoss is to isolate the WAR classloading by performing the following steps:1> Isolate the WAR; you have two ways to do that: Editing the file \jboss-5.1.0.GA\server\default\deployers\jbossweb.deployer\META-INF\war-deployers-jboss-beans.xml and commenting the WarClassLoaderDeployer bean...
More