This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Getting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Getting "hibernate.cfg.xml not found" even though it is at the root of my JAR" Watch "Getting "hibernate.cfg.xml not found" even though it is at the root of my JAR" New topic
Author

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

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting "hibernate.cfg.xml not found" even though it is at the root of my JAR
 
Similar Threads
session interrupe for the big file
Hibernate: Mysql Auto Reconnect is not happening.
EJB3 entity bean
Is it possible to run an app with Hibernate 4 on an older JBoss server?
JBoss/JPA/Spring Question - What is the JNDI Name for the EntityManager