java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl

Icesoft | cmaclachlan | 1 decade ago
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

    Re:Problems deploying Icefaces within an ear when using JBossWebLoader

    Icesoft | 1 decade ago | cmaclachlan
    java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
  2. 0

    ClassCastException SAXParserFactory after using Parent Last loading in Websphere 6.0

    Google Groups | 1 decade ago |
    java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
  3. 0

    Xerces and Xalan with WAS 5

    Google Groups | 1 decade ago | Joe Herbers
    java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SAXParser error

    Google Groups | 1 decade ago | JJ Bussert
    java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
  6. 0

    When running in OSGi environment, JoranConfigurator throws a ClassCastException when trying to parse the Logback XML configuration file. The problem seems to be caused by OSGi-unfriendly JAXP parser discovery mechanism as suggested by Dieter Wimberger in his blog post -- "[...] JAXP discovery mechanism assume visibility of the parser through the context ClassLoader of the actual thread, which may cause some troubles." Observed exception stack trace: Failed to auto configure default logger context Reported exception: ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occured at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents( at ch.qos.logback.core.joran.GenericConfigurator.doConfigure( at ch.qos.logback.core.joran.GenericConfigurator.doConfigure( at ch.qos.logback.core.joran.GenericConfigurator.doConfigure( at ch.qos.logback.classic.util.ContextInitializer.configureByResource( at ch.qos.logback.classic.util.ContextInitializer.autoConfig( at org.slf4j.impl.StaticLoggerBinder.init( at org.slf4j.impl.StaticLoggerBinder.<clinit>( at org.slf4j.LoggerFactory.getSingleton( at org.slf4j.LoggerFactory.bind( at org.slf4j.LoggerFactory.performInitialization( at org.slf4j.LoggerFactory.getILoggerFactory( at org.slf4j.LoggerFactory.getLogger( at org.slf4j.LoggerFactory.getLogger( at<clinit>( at at org.apache.felix.framework.util.SecureAction.startActivator( at org.apache.felix.framework.Felix._startBundle( at org.apache.felix.framework.Felix.startBundle( at org.apache.felix.framework.Felix.setFrameworkStartLevel( at at Source) Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents( ... 21 more JIRA | 8 years ago | Pavol Juhos
    ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occured

    3 unregistered visitors
    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


      at javax.xml.parsers.SAXParserFactory.newInstance()
    2. Java RT
      1. javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
      1 frame
    3. Glassfish Core
      1. org.apache.tomcat.util.digester.Digester.getFactory(
      2. org.apache.tomcat.util.digester.Digester.getParser(
      3. org.apache.tomcat.util.digester.Digester.getXMLReader(
      4. org.apache.tomcat.util.digester.Digester.parse(
      4 frames