This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not parse mapping document from resource

 
Singh Anisha
Ranch Hand
Posts: 100
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could not parse mapping document from resource

I am getting this message when trying to run my first hibernate program.


This is the code of mapping file. What wrong I have done??
 
T Mishra
Ranch Hand
Posts: 108
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's been a while that I've used xml for entity mapping. May be you can try using annotation. An example here.
 
Singh Anisha
Ranch Hand
Posts: 100
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in starting phase so the way till the time i have learnt is to do mapping in xml.
 
T Mishra
Ranch Hand
Posts: 108
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the class - Contact has a package ?If yes, add the fully qualified class name. So, instead of Contact it may be something like com.foo.Contact. A similar post here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic