-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: org.hibernate.HibernateException: /hibernate.cfg.xml not fou
PostPosted: Thu Sep 29, 2011 3:47 pm 
Newbie

Joined: Fri May 13, 2011 9:51 am
Posts: 3
I just updated my eclipse rcp project to use hibernate 3.6.7 and ran the application an the following exception was thrown:

org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:2146)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2127)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:211)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:70)

The application has been running for the last six months with Hibernate 3.6.1 just fine.

Before updating to Hibernate 3.6.7 I removed the old version (3.6.1) from the project and then added the new version. Rebuilt and complied, then ran it, the HibernateException 'not found' was thrown.

What is wrong? The hibernate.cfg.xml file is in the classpath ( it was never moved) as before.

I had look all over the web for answers with no good responses. Any ideas?

Thanks,

eric


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.