I have recently installed Myeclipse 4.0M2 build 20050627-4.0-milestone2 on a new installation of Eclipse 3.1.0 build I20050610-1757 all running on Windows XP professional with JDK 1.4.2_08. On running the Hibernate Quickstart tutorial I get hte following error message:
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
%%%% Error Creating SessionFactory %%%%
net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:886)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:910)
at com.genuitec.hibernate.SessionManager.currentSession(SessionManager.java:48)
at com.genuitec.hibernate.HBTest.main(HBTest.java:18)
java.lang.NullPointerException
at com.genuitec.hibernate.SessionManager.currentSession(SessionManager.java:56)
at com.genuitec.hibernate.HBTest.main(HBTest.java:18)
Exception in thread “main”
The hibernate.cfg.xml file is in the default location, but I have also tried copying it to other locations and also hard coding the file path in the call from the SessionManager, without success. I have created a normal FileReader in the SessionManager and used the CONFIG_FILE_LOCATION string to load the file location and this has worked without a problem. Any ideas?
I have 4 plugins like “org.eclipse.pde.*