• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hibernate Cant Find hibernate.cfg.xml

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic