Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Object Relational Mapping and the fly likes MappingException: Error reading resource: com/test/hiberna Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "MappingException: Error reading resource: com/test/hiberna" Watch "MappingException: Error reading resource: com/test/hiberna" New topic
Author

MappingException: Error reading resource: com/test/hiberna

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Hi, I am using Hibernate with WSAD5.1 and trying to run a test class and geeting follwing exception.

net.sf.hibernate.MappingException: Error reading resource: com/test/hibernate/Data.hbm.xml

I have hibernate.cfg.xml in WEB-INF. Any clue please ?

Thanks
Sudhakar
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

If your hibernate.cfg.xml not recognized then you might have got exception for creating sessionFactory. Your first exception comes at that time.


-Jignesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MappingException: Error reading resource: com/test/hiberna
 
Similar Threads
Exception in thread "main" org.hibernate.MappingNotFoundException:
Beginner in hibernate getting error : org.hibernate.MappingException: Unknown entity
Problem of Unknown Entity
unable to map the hbm files
In hibernate Follwowing error occured "Error reading resource: Department.hbm.xml"