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
|