aspose file tools*
The moose likes Object Relational Mapping and the fly likes getting MappingException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "getting MappingException:" Watch "getting MappingException:" New topic
Author

getting MappingException:

Priya Joshi
Greenhorn

Joined: Jun 07, 2008
Posts: 5
Hi i am using hibernate configuration
i am getting following exception when i run my application..

here i am giving full stack trace:

org.hibernate.MappingException: Unknown entity: org.hibernate.impl.SessionImpl
org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:512)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:80)
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
com.wissen.blog.backend.service.impl.NewBlogServiceImpl.createBlogByName(NewBlogServiceImpl.java:42)
com.wissen.blog.backend.facade.impl.NewBlogFacadeImpl.authenticateBlogUrl(NewBlogFacadeImpl.java:57)
com.wissen.blog.managedbeans.NewBlogMB.newblog(NewBlogMB.java:33)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)



Please help me..
urgent...

thanks


SCJP 1.5 80%
Onkar Joshi
Ranch Hand

Joined: Mar 01, 2007
Posts: 116
Your problem is likely to be here. It is probably due to incorrect usage of the Hibernate API in NewBlogServiceImpl.java or NewBlogMB.java.

com.wissen.blog.backend.service.impl.NewBlogServiceImpl.createBlogByName(NewBlogServiceImpl.java:42)
com.wissen.blog.backend.facade.impl.NewBlogFacadeImpl.authenticateBlogUrl(NewBlogFacadeImpl.java:57)
com.wissen.blog.managedbeans.NewBlogMB.newblog(NewBlogMB.java:33)


SCJP 5 - 95% | SCWCD 1.4 - 88% | SCBCD 5 - 93%
Onkar Joshi's blog | LinkedIn profile
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9318
    
109

What (object) are you passing to the saveorupdate method?


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting MappingException:
 
Similar Threads
Hibernate delete exception
Problem with inserting new data into database using hibernate
Problem of Unknown Entity
hbm file version working but annotation not
problem with hibernate