java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory

  1. 0

    Using PowerMock with embedded Tomcat

    Stack Overflow | 3 months ago | Alexandru Cojocaru
    java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
  2. 0

    Cast problem

    Coderanch | 6 years ago | Tony Evans
    java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
  3. 0

    Conflicts between JDK6 and xml-apis

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PowerMock (API mockito) - Slf4j (API logbak)

    GitHub | 1 year ago | johanhaleby
    ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occurred
  6. 0

    See https://issues.apache.org/jira/browse/SLING-4425. I've tried to remove {{org.apache.sling.fragment.xml}} and replace it with {{org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/2.4.0}} using {{Sling Launchpad 8}}. This results into incompatibilities after restarting Sling: Reported exception: ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occurred at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:88) at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:134) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302) at org.apache.sling.commons.log.logback.internal.Activator.isSlf4jInitialized(Activator.java:108) at org.apache.sling.commons.log.logback.internal.Activator.start(Activator.java:54) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) at org.apache.felix.framework.Felix.activateBundle(Felix.java:2220) at org.apache.felix.framework.Felix.startBundle(Felix.java:2138) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1365) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:115) at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:81) ... 19 more

    Apache's JIRA Issue Tracker | 1 year ago | Helge-Frank Zimpel
    ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occurred

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory

      at javax.xml.parsers.FactoryFinder.newInstance()
    2. Java RT
      FactoryFinder.newInstance
      1. javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:190)
      1 frame