File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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

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 ?

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.

I agree. Here's the link:
subject: MappingException: Error reading resource: com/test/hiberna
It's not a secret anymore!