java.lang.ClassCastException

org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader

Samebug tips0

There are no available Samebug tips.

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

Solutions on the web466

  • via Stack Overflow by pulse
    ,
  • Stack trace

    • java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:243)[talledLocalContainer] at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:194)[talledLocalContainer] at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)[talledLocalContainer] at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)[talledLocalContainer] at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)[talledLocalContainer] at org.dom4j.io.SAXReader.read(SAXReader.java:435)[talledLocalContainer] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1518) Caused by: org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1528)[talledLocalContainer] at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1035) Caused by: org.dom4j.DocumentException: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader at org.dom4j.io.SAXReader.read(SAXReader.java:484)[talledLocalContainer] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1518)[talledLocalContainer] ... 2 more

    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

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    37 more bugmates