org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.drinkupstream.heroes.Hero"/>

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 Chris Ottley
, 2 years ago
Unable to load class [ invoice] declared in Hibernate configuration &lt;mapping/&gt; entry
via Stack Overflow by oddly
, 1 year ago
Unable to load class [ src/main/java/com.hibernate.data/Person] declared in Hibernate configuration <mapping/> entry
via dreamincode.net by Unknown author, 1 year ago
Unable to load class [ src/main/java/com.hibernate.data/Person] declared in Hibernate configuration <mapping/> entry
via javavillage.in by Unknown author, 1 year ago
An AnnotationConfiguration instance is required to use <mapping class="com.practical.Employee"/>
org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.drinkupstream.heroes.Hero"/>
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1478)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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