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

Hibernate JIRA | Jared Warren | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. org.hibernate.MappingException

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

      at org.hibernate.cfg.Configuration.parseMappingElement()
    2. Hibernate
      SchemaExport.main
      1. org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1478)
      2. org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
      3. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
      4. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)
      5. org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
      6. org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:359)
      6 frames