• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate

 
rajesh ojha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
/hibernate.cfg.xml not found
i am create a simple application in eclipse and create two xml file in web-inf contact.hbm.xml and hibernate.cfg.xml and two java classes create in hibernate package when we run the program thn /hibernate.cfg.xml not found msg received so anybody help me please...........
thanks
 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajesh,
Welcome to javaranch..
Keep the hibernate.cfg.xml, inside the default package, so it will go into WEB-INF/classes.. This should solve your problem.

P:S: This is a forum dedicated for servlets, we have forum for ORM, this question would sit in there.. please CarefullyChooseOneForum
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic