• 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

Getting "hibernate.cfg.xml not found" even though it is at the root of my JAR

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm creating a JAR application using Hibernate 4.1.5.SP1 and running on a JBoss 4.2.3.GA server. At the root of my JAR file, I have a hibernate.cfg.xml file, however, it's not getting found, and I'm wondering what crazy class loader issues may be going on. I load the file like so



and the error I get is



Any ideas what's going wrong? The hibernate.cfg.xml file looks like



I have this META-INF/jboss.xml file ...



What else can I check? Thanks, - Dave
reply
    Bookmark Topic Watch Topic
  • New Topic