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]

Oracle Community | 633629 | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    oc4j + xerces

    Oracle Community | 8 years ago | 633629
    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]

    Root Cause Analysis

    1. 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()
    2. XWork
      ConfigurationManager.getConfiguration
      1. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:839)
      2. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
      3. com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
      4. com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
      5. com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
      5 frames
    3. Struts2
      FilterDispatcher.init
      1. org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
      2. org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
      3. org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
      3 frames