java.lang.ClassCastException

org.apache.xerces.jaxp.SAXParserFactoryImpl Some people told me to put some jar files in <ORACLE_HOME>/jdk/jre/lib Those jars are : xalan-2.6.0.jar xerces-2.4.0.jar xercesImpl-2.8.1.jar xmlParserAPIs-2.6.2.jar But after I´ve copied thos dependencies my app deployment process gets the following error : Caught exception while loading file struts-default.xml - [unknown location]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by 633629,
  • Stack trace

    • java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl Some people told me to put some jar files in <ORACLE_HOME>/jdk/jre/lib Those jars are : xalan-2.6.0.jar xerces-2.4.0.jar xercesImpl-2.8.1.jar xmlParserAPIs-2.6.2.jar But after I´ve copied thos dependencies my app deployment process gets the following error : Caught exception while loading file struts-default.xml - [unknown location] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:839) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.