aspose file tools*
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 Spring in Action this week in the Spring 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: 16145
    
  21


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