org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParse

 

We have got this error lately with Apache Tomcat installation and our old applications written on struts 2 and webwork 2.

org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

The weird thing about this was that it did not occur always. So, you do a restart and application starts... then you restart a server and it does not start. Really weird classloading issue as it seems.

And the problem was solved by removing xerces*.jar files from application's LIB directory.

你可能感兴趣的:(apache,tomcat,struts,server,Webwork,application)