org.hibernate.InvalidMappingException

Unable to read XML

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web20

Stack trace

  • org.hibernate.InvalidMappingException: Unable to read XML at org.hibernate.internal.util.xml.MappingReader.legacyReadMappingDocument(MappingReader.java:375) at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:304) at org.hibernate.cfg.Configuration.add(Configuration.java:518) at org.hibernate.cfg.Configuration.add(Configuration.java:514) at org.hibernate.cfg.Configuration.add(Configuration.java:688) at org.hibernate.cfg.Configuration.addResource(Configuration.java:771) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2257) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2229) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2209) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2162) at org.hibernate.cfg.Configuration.configure(Configuration.java:2077) at test.TestClass.main(TestClass.java:17)

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 visitorOnce,