org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.tioti.domain. Show"/>

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 Terracotta by Gleb, 1 year ago
An AnnotationConfiguration instance is required to use <mapping class="com.tioti.domain. Show"/>
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, 11 months 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
, 10 months 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.tioti.domain. Show"/>
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 org.terracotta.modules.hibernate_3_2_5.util.HibernateUtil.(HibernateUtil.java:17)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.terracotta.modules.hibernate_3_2_5.object.applicator.HibernateProxyApplicator.getSession(HibernateProxyApplicator.java:251)
at org.terracotta.modules.hibernate_3_2_5.object.applicator.HibernateProxyApplicator.getNewInstance(HibernateProxyApplicator.java:202)
at com.tc.object.TCClassImpl.getNewInstanceFromNonDefaultConstructor(TCClassImpl.java:342)
at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:50)
at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1128)
at com.tc.object.TCObjectImpl.createPeerObjectIfNecessary(TCObjectImpl.java:184)
at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:112)
at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:583)
at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:483)
at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:472)
at com.tc.object.TCObjectPhysical.resolveReference(TCObjectPhysical.java:133)
at com.tioti.domain.ShowHistory.__tc_getshow(ShowHistory.java)
at com.tioti.domain.ShowHistory.getShow(ShowHistory.java:200)
at com.tioti.domain.ShowHistory.(ShowHistory.java:171)
at com.tioti.web.spring.controller.ShowAboutController.handleGeneralRequest(ShowAboutController.java:59)
at com.tioti.web.spring.controller.ShowPageBaseController.handleRequestInternal(ShowPageBaseController.java:73)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

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
Samebug visitor profile picture
Unknown user
2 times, 11 months ago

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