Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error running sample hibernate code

 
Vikrant Sahdev
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

I tried some sample code for hibernate,and tried persisting an object to MySQl database.On running ,I am getting the following console error:


Could not parse configuration: /hibernate.cfg.xml
null


Thanks
 
Erap Estrada
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the server can't find the file.

first, verify that the file does exist.
second, make sure that the hibernate.cfg.xml is inside the "classes" folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic