hibernate 5.0.6 does not work with Aries JPA 2.3.0

Description

I just tried to install the hibernate 5.0.6.Final feature file together with my tasklist-ds example on karaf 4.0.4.

I got some problems with the API bundles hibernate installs. One problem is that hibernate installs jta 1.1 while karaf installs jta 1.2. This causes the TransactionManager service to bind ot the 1.1 namespace. So the service is unavailable to Aries jpa blueprint and Aries JPA support which both require the 1.2 version of jta.

The other problem is that hibernate installs a different bundle for jpa 2.1. Not sure if this causes additional problems but it is not good anyway.

The solution is to use dependency="true" for all others then the top level bundles of a feature. This gives karaf the freedom to choose a different bundle in the resolving phase that also satisfies the requirements of the feature. I have attached a working feature file.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Christian Schneider

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.6

Priority

Major