aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
 
subject: MappingException: Error reading resource: com/test/hiberna