We are planning to upgrade our current JBoss 3.2.3 servers to JBoss 4.0.1 but some applications cannot find the hibernate.cfg.xml and other properties files any more that are just sitting on the root of the application.
Example structure :
-com ---abc ------def.class ... -a.properties -cache.ccf -hibernate.cfg.xml
sorry to bother. By I have exactly the same problem. I'm trying to upgrade JBoss from 3.2.5 to 4.0.1 but I'm using Hibernate 2.1.8 with a hibernate.cfg.xml working perfectly.
Do you found out how to use cfg.xml in 4.x Jboss versions? Or did you had to create a .har file? (I'm using a jar inside an ear that works great. Tryed jboss-service.xml but didn't get any success.