Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MappingException: Error reading resource: com/test/hiberna

 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your hibernate.cfg.xml not recognized then you might have got exception for creating sessionFactory. Your first exception comes at that time.


-Jignesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic