Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate Cant Find hibernate.cfg.xml

 
reza aghazade
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks,,
i use code Below ( HibernateUtil Class) for creating the SessionFactory,,




But App send me an error,,



& you can see my Project Structure in here:
https://www.dropbox.com/s/vhtnfvtvcygv2ap/Untitled.png

--------------------------


there was 2 Error:

1-hibernate Cant find Hibernate.cfg.xml
2-server class 'com.mySampleApplication.client.StudentDTO' could not be found in the web app,
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a web application. Make sure that the hibernate.cfg.gwt.xml and .class files are in classes folder inside the WEB-INF folder. Try to create structure as follows:

https://www.dropbox.com/s/7swpsle8e5qias4/Forum.PNG
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic