We dropped the hibernate-osgi module in 6 because nobody wanted to maintain all this metadata and tests. If you want Hibernate to work in an OSGi environment, please provide a pull request with the necessary fix.