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.

Attachments

1
  • 11 Jan 2016, 11:14 AM

Activity

Show:

Steve Ebersole January 13, 2016 at 2:13 PM

Thanks for verifying !

Christian Schneider January 13, 2016 at 10:03 AM

I have built from master and tested the current 5.1.0-SNAPSHOT with my examples on karaf 4.0.4. It works fine now.

Steve Ebersole January 12, 2016 at 9:52 PM

I went ahead and added a few more dependency="true" entries.

Steve Ebersole January 12, 2016 at 3:39 PM

Understood. But that's a tedious and fragile thing to script in our build.

Steve Ebersole January 12, 2016 at 3:38 PM

Fixed

Details

Assignee

Reporter

Time tracking

0.22h logged

Components

Fix versions

Affects versions

Priority

Created January 11, 2016 at 11:14 AM
Updated January 13, 2016 at 6:27 PM
Resolved January 12, 2016 at 9:53 PM

Flag notifications