Karaf feature hibernate-envers: ensure bundle startup sequence

Description

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).

Workarround:
add start-level attribute to the feature, to ensure the boot sequence (start hibernate-envers after all other hibernate bundles)
e.g.:

  • <feature name="hibernate-orm" ... start-level="90">

  • <feature name="hibernate-envers" ... start-level="99">

Environment

Hibernate 5.0.0.Final, Karaf 3.0.4

Status

Assignee

Unassigned

Reporter

Felix Wassmer

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure