Uploaded image for project: 'Hibernate ORM'
  1. HHH-10432

hibernate 5.0.6 does not work with Aries JPA 2.3.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: hibernate-osgi
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      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

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 13m
                  13m