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

Icesoft | cmaclachlan | 1 decade ago
  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 | vasque...@hotmail.com
    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 -- http://wimpi.coalevo.net/2008/04/hack-how-to-use-logback.html "[...] 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(SaxEventRecorder.java:63) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:105) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:76) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:40) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:47) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:108) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:56) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:112) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:105) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221) at com.foo.bar.server.config.Configuration.<clinit>(Configuration.java:244) at com.foo.bar.server.ServerBundleActivator.start(ServerBundleActivator.java:39) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589) at org.apache.felix.framework.Felix._startBundle(Felix.java:1671) at org.apache.felix.framework.Felix.startBundle(Felix.java:1588) at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1180) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265) at java.lang.Thread.run(Unknown 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(SaxEventRecorder.java:56) ... 21 more

    QOS.ch 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

      org.apache.xerces.jaxp.SAXParserFactoryImpl

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