-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Configurations is not working(Eclipse)
PostPosted: Mon Oct 12, 2009 2:05 am 
Newbie

Joined: Mon Oct 12, 2009 1:59 am
Posts: 3
Hi,
My program is running properly, but when i try to use hibernate configuration perspective to check my hql queries its giving the following error-Classnotfound however the class is there as program which i am running is executing fine. Attached is stacktrace::

org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/abhishek/hbm/Message.hbm.xml
Could not parse mapping document from resource com/abhishek/hbm/Message.hbm.xml
org.hibernate.MappingException: class com.abhishek.hbm.Message not found while looking for property: id
class com.abhishek.hbm.Message not found while looking for property: id
org.hibernate.MappingException: class com.abhishek.hbm.Message not found while looking for property: id
class com.abhishek.hbm.Message not found while looking for property: id
java.lang.ClassNotFoundException: com.abhishek.hbm.Message
com.abhishek.hbm.Message


Top
 Profile  
 
 Post subject: Re: Hibernate Configurations is not working(Eclipse)
PostPosted: Tue Oct 13, 2009 3:59 am 
Newbie

Joined: Mon Oct 12, 2009 1:59 am
Posts: 3
I checked everything still not working. It is pointing to correct project and in the classpath i have given the project. Can you please help


Top
 Profile  
 
 Post subject: Re: Hibernate Configurations is not working(Eclipse)
PostPosted: Wed Oct 14, 2009 1:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is the exception below this ?

i.e. if you are generating code then the type of the property need to specified - if you are running queries then the classes need to be on the classpath and the error says that is not the case.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Hibernate Configurations is not working(Eclipse)
PostPosted: Wed Oct 14, 2009 2:20 am 
Newbie

Joined: Mon Oct 12, 2009 1:59 am
Posts: 3
Thx a lot friend.. i wasnt specifying the type of the property which is why it was giving this error..


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.