When trying to install hibernate-envers feature from the new karaf features.xml, building the EntitiyManager fails and following exception occurs on startup of the application:
It looks like Envers is already registering it's TypeContributor, before EnversService was registered in the ServiceRegistry.
(this only happens during application deployment (about 100 bundles and 50 entities), not when deploying the plain hibernate-envers feature with nothing else).
add start-level attribute to the feature, to ensure the boot sequence (start hibernate-envers after all other hibernate bundles)
<feature name="hibernate-orm" ... start-level="90">
<feature name="hibernate-envers" ... start-level="99">
Hibernate 5.0.0.Final, Karaf 3.0.4