• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

contact.hbm.xml not found

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my contact.hmb.xml file



this is my config.xml file



this code workinf fine.my cnfig and hbm files are in src folder.but i change the hbm file to resources folder.
then i change the config file as below



then it gives me below error

 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try remove the ".." in the mapping, leaving "/resources/contact.hbm.xml"
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
changed,but same results.

 
Volodymyr Lysenko
Ranch Hand
Posts: 512
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add resource folder to your classpath.

In eclipse go to properties of your project. Press Alt+Enter on root folder.

Then select Java Build Path item and locate Source tab. Under that tab there is button Add Folder to specify folder to add to classpath.

Then reference contact.hbm.xml starting from folder under resources. In your case it is direct child, so

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic