hi,
I'm having a similar problem with JRun4. My 'hibernate.cfg.xml' is located in the WEB-INF/classes folder. But the xml file can't not be loaded. Can someone please help?
Terry
Code:
Configuration cfg = new Configuration();
cfg.configure();
SessionFactory sessions = cfg.buildSessionFactory();
Session session = sessions.openSession();
...
event.log (of the error):
11/05 03:13:29 info [axis] Hibernate 2.1.6
11/05 03:13:29 info [axis] hibernate.properties not found
11/05 03:13:29 info [axis] using CGLIB reflection optimizer
11/05 03:13:29 info [axis] configuring from resource: /hibernate.cfg.xml
11/05 03:13:29 info [axis] Configuration resource: /hibernate.cfg.xml
11/05 03:13:29 warning [axis] /hibernate.cfg.xml not found
11/05 03:13:29 info [axis] configuring from resource: /hibernate.cfg.xml
11/05 03:13:29 info [axis] Configuration resource: /hibernate.cfg.xml
11/05 03:13:29 warning [axis] /hibernate.cfg.xml not found
11/05 03:13:29 info [axis] configuring from resource: /hibernate.cfg.xml
11/05 03:13:29 info [axis] Configuration resource: /hibernate.cfg.xml
11/05 03:13:29 warning [axis] /hibernate.cfg.xml not found
11/05 03:14:13 user FlashGatewayServlet: destroy
11/05 03:14:13 user hib.Test: destroy
11/05 03:14:13 user ServletInvoker: destroy