• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

hibernate.cfg.xml not found

Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying out the Sample Hibernate Application
and it all worked fine until I ported the sample to Servlet form. I'm getting the following error when i try to initiate a data Save through Hibernate.
util.HibernateUtil.<clinit>(Unknown Source)
events.EventManagerServlet.doGet(Unknown Source)

And in the Tomcat log it says
13:10:29,921 INFO Configuration:1403 - Configuration resource: /hibernate.cfg.xml
Excepotion thrown /hibernate.cfg.xml not found

which originates from

Now the Hibernate.cfg.xml is in the webapps\hibtest\WEB_INF\classes folder.
And I assume this in the runtime classpath of the application, then why does it still give this error?
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like a case issue.
As you know in java, object names are case-sensitive

Is the file name hibernate.cfg.xml or Hibernate.cfg.xml
[ September 13, 2007: Message edited by: Bougnon Kipre ]
I do some of my very best work in water. Like this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic