Brian Nettles
It's my blog and I share.


 

org.hibernate.MappingNotFoundException: resource: /Entry.hbm.xml not found

Ran across this error while building the Swing application with Hibernate. Originally, the Entry.hbm.xml file was placed deep in the directory structure next to the java class called Entry.java. Several ways of naming the xml file where tried. The only solution that worked in this case was to move the file outside of the classpath structure and place it in the root directory next to the hibernate.cfg.xml file.

One Response to “org.hibernate.MappingNotFoundException: resource: /Entry.hbm.xml not found”
  1. Karla Says:

    I am building the Seam application with Hibernate, and I had the same problem org.hibernate.MappingNotFoundException: resource /Rdi426pf.hbm.xml not found, so I moved my file next to the hibernate.cfg.xml and it worked.
    Thank you Brian.

Leave a Reply


Blog Information Profile for Supertramp678