This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MappingException: Error reading resource: com/test/hiberna  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!