Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.MappingNotFoundException: resource: edu/hib/pojo/Employee.orm.xml not found

 
Prakash Mani - Attur
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to configure hbm2java for my sample hibernate project. When i am adding the task in build.xml and ran it getting the below error.


I have also checked the three points which ant suggested... The file Employee.orm.xml actually exists in the specified directory.. can anybody help me on this ?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18169
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is edu/hib/pojo/Employee.orm.xml available via the classpath?


It's not sufficient that the file exists. It has to exist in the classpath for hbm2java. That's because it isn't being read "as a file", but instead is being read via the classloader as a resource.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic