java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Putnik
, 11 months ago
org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader
via Stack Overflow by user1183114
, 2 years ago
org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader
via GitHub by johanhaleby
, 1 year ago
com.sun.org.apache.xerces.internal.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader
via Stack Overflow by Shahar Taite
, 2 years ago
org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader Warning: I will print the stack trace then carry on using the default SAX parser
via Coderanch by Paco Martin Duque, 1 year ago
org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.XMLReader
via blogspot.com by Unknown author, 2 years ago
weblogic.xml.jaxp.RegistryXMLReader cannot be cast to org.xml.sax.XMLReader
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)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1518)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1528)
at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1035)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.