I try to load hibernate.cfg.xml in a submodule (ssf/samples/customcontroller) of an existing project. For this project there exists a build.xml which builds and deploys the proj
HI try to pass hibernate.cfg.xml file path as an argument into the configure()
hibernate.cfg.xml
configure()
SessionFactory sessionFactory = new Configuration().configure( "/ssf/samples/customcontroller/src/resources/hibernate.cfg.xml") .buildSessionFactory(); return sessionFactory;