• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MappingNotFoundException

 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm creating a Hibernate Servlet, but I keep getting a MappingNotFoundException. I'm not sure why as I'm doing things like in the tutorial.

Here's my beans.User.java file.


Here's my hibernate.cfg.xml file.


And here's my User.hbm.xml file.


And my file structure is thus.



I'm pretty sure I just have silly typo or something, but I can't seem to see it. TIA.
[ November 14, 2008: Message edited by: Bai Shen ]
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Include <mapping resource="beans/User.hbm.xml"/> in your hbm.cfg.xml
 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That did it. Thanks. I knew it was something small like that.
reply
    Bookmark Topic Watch Topic
  • New Topic