This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes org.hibernate.MappingNotFoundException: resource: edu/hib/pojo/Employee.orm.xml not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "org.hibernate.MappingNotFoundException: resource: edu/hib/pojo/Employee.orm.xml not found" Watch "org.hibernate.MappingNotFoundException: resource: edu/hib/pojo/Employee.orm.xml not found" New topic
Author

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

Prakash Mani - Attur
Ranch Hand

Joined: Oct 08, 2009
Posts: 100
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

Joined: Jun 25, 2001
Posts: 15958
    
  19


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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.hibernate.MappingNotFoundException: resource: edu/hib/pojo/Employee.orm.xml not found
 
Similar Threads
hibernate with HSQL db - Acquisition Attempt Failed Error
Hibernate with HSQLdb - SQLException requires collation in statement
hibernate, ant task, hbm2java, code generation and circular dendency?
problem at using hibernate extension to build *java from *.hbm.xml
Classpath problems(?)