Application « cfg « JPA Q&A





1. web application structure hierarcy problem    stackoverflow.com

Below an illustration of my project hierarchy project hierarchy When i try to connect my file_name.java file to hibernate i'm getting these errors

Exception in thread "main" org.hibernate.HibernateException: Could not instantiate cache ...

2. hibernate.cfg.xml file not found within orion app server    forum.hibernate.org

i am deploying an ear file to the orion app server and have in the root of the ear file the hibernate.cfg.xml file. Within the ear file i have an ejb jar file that has a ejb class that calls: Code: Configuration cfg = new Configuration().configure(); to load the hibernate.cfg.xml file. When this happens i get an error in my log ...