Ear « cfg « JPA Q&A





2. Packaging og hibernate.cfg.xml in EAR file    forum.hibernate.org

Hello everyone, I am working on a project where there is a Web module and an EJB jar module packaged in an EAR file. Both the Web and Ejb module have hibernate dependencies. So i have moved up all the required jars to the EAR level and added Jar dependencies to both the Web and the EJB module. But the problem ...

3. hibernate.cfg.xml in EAR application files for WebLogic    forum.hibernate.org

It seems to be a Weblogic Classloader issue. Without knowing your exact ear deployment structure I would suggest that you make sure that hibernate.jar and your config file use the same classloader. Keeping classloader hierarchy in mind, a classloader cannot get resources of its siblings or children. If this doesn't help post how your ear is structured and where exactly you ...

4. Hibernate.cfg.xml resides in an ear file? Can I modify it?    forum.hibernate.org

Hello all, I'm using Hibernate 3.0. I have a J2EE application - it's a ear file (containing a war and a jar). The hibernate.cfg.xml file is located inside the ear. The problem is that our application is supposed to work with multiple databases - meaning multiple dialects and different database connection parameters - which is specified inside the hibernate.cfg.xml file inside ...