• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error running sample hibernate code  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!