Hibernate and OSGi integration, it unable to load hibernate configuration file
问题 I'm creating OSGi dynamic bundle which should communicate with database and I am using Hibernate as I used it in non OSGI application. I putted original hibernate jars in the OSGi project's lib dir, and make sure those jars are on the project's build path and runtime class-path, I copied all configuration files(i. e. hibernate-cfg.xml) in the root of the OSGi bundled jar. When I execute my bundle (JAR) inside OSGi container it throws error for not finding hibernate-cfg.xml file. Maybe