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 Samprity Kashyap
, 11 months ago
An AnnotationConfiguration instance is required to use <mapping class="com.model.User"/>
via javavillage.in by Unknown author, 1 year ago
An AnnotationConfiguration instance is required to use <mapping class="com.practical.Employee"/>
via Coderanch by subhashchandra medhiassam, 1 year ago
An AnnotationConfiguration instance is required to use <mapping clazz="Schema1"/>
via hibernate.org by Unknown author, 1 year ago
An AnnotationConfiguration instance is required to use <mapping package="contacts"/>
via Stack Overflow by Davidin073
, 1 year ago
An AnnotationConfiguration instance is required to use <mapping class="com/david/Categoria"/>
via Stack Overflow by startedFromTheBottom
, 2 years ago
An AnnotationConfiguration instance is required to use &lt;mapping class="org.test.livejava.machine.UserDetails"/&gt;
org.hibernate.MappingException: An AnnotationConfiguration instance is required
to use <mapping class="com.model.User"/>	at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1606)	at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)	at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)	at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)	at org.hibernate.cfg.Configuration.configure(Configuration.java:1420)	at com.sample.HibernateUtil.configureSessionFactory(HibernateUtil.java:26)	at com.sample.HibernateUtil.(HibernateUtil.java:20)	at com.sample.App.checkUser(App.java:34)