Enterprise Bundle Repository
  1. Enterprise Bundle Repository
  2. EBR-712

Issue with SLF4J version in com.springsource.org.hibernate.ejb-3.4.0.GA.jar manifest

    Details

    • Type: Defect Defect
    • Status: Done Done
    • Priority: Minor Minor
    • Resolution: Complete
    • Labels:
      None
    • Environment:

      Eclipse Virgo 2.1.0.RELEASE

      Description

      When deploying com.springsource.org.hibernate.ejb-3.4.0.GA.jar to Eclipse Virgo an exception is thrown.

      An Import-Package could not be resolved. Caused by missing constraint in bundle <com.alliancebernstein.cfs.raa.repository.hibernate_3.0.6.SNAPSHOT>
                   constraint: <Import-Package: org.hibernate.ejb.packaging; version="[3.4.0.GA,3.4.0.GA]"> constrained to bundle <com.springsource.org.hibernate> constrained bundle version range "[3.3.1.GA,3.4.0)" 
      

      "The problem is caused by Virgo having upgraded Logback and slf4j in order to fix a severe logging problem. Changing the manifest of com.springsource.org.hibernate.ejb-3.4.0.GA.jar to import the package org.slf4j with version range [1.5.3, 1.7.0) instead of [1.5.3, 1.6.0) fixes the problem."

      Attaching a jar with the fixed manifest.

      For additional details please see the support JIRA:

      http://jira.hyperic.com/browse/SUPPORT-9862

      Thanks

        Activity

        Hide
        Glyn Normington (c) added a comment -

        Thanks Dmitry. In the interests of making the absolute bare minimum change, I have updated the version of B to match that of C, which ensures the package org.hibernate.ejb has a consistent version.

        The package versions exported by A and B are inconsistent, as they were previously.

        I think your approach of merging all the bundles into one using fragments is the right thing in the longer term.

        BTW it is valid for a bundle to export the same package with multiple versions, so that's why Equinox allows the above bundles to resolve and attach.

        Show
        Glyn Normington (c) added a comment - Thanks Dmitry. In the interests of making the absolute bare minimum change, I have updated the version of B to match that of C, which ensures the package org.hibernate.ejb has a consistent version. The package versions exported by A and B are inconsistent, as they were previously. I think your approach of merging all the bundles into one using fragments is the right thing in the longer term. BTW it is valid for a bundle to export the same package with multiple versions, so that's why Equinox allows the above bundles to resolve and attach.
        Hide
        Dmitry Sklyut added a comment -

        Hi Glyn,

        My bad on the resolution part. Re-read the spec and it is restriction on the import (obviously) not export.
        (core spec section 3.13)

        Thanks!

        Show
        Dmitry Sklyut added a comment - Hi Glyn, My bad on the resolution part. Re-read the spec and it is restriction on the import (obviously) not export. (core spec section 3.13) Thanks!
        Hide
        Glyn Normington (c) added a comment -

        See http://ebr.springsource.com/repository/app/library/version/detail?name=org.hibernate.ejb&version=3.4.0.GA-A&searchType=librariesBySymbolicName&searchQuery=org.hibernate for the new library definition which includes the updated bundles. All the updates use a qualifier ending in "-A".

        Show
        Glyn Normington (c) added a comment - See http://ebr.springsource.com/repository/app/library/version/detail?name=org.hibernate.ejb&version=3.4.0.GA-A&searchType=librariesBySymbolicName&searchQuery=org.hibernate for the new library definition which includes the updated bundles. All the updates use a qualifier ending in "-A".
        Hide
        Glyn Normington (c) added a comment -

        Re-opened as there was a typo which produced a bad dependency in the library pom.xml. See http://www.eclipse.org/forums/index.php?t=rview&goto=654424#msg_654424.

        Show
        Glyn Normington (c) added a comment - Re-opened as there was a typo which produced a bad dependency in the library pom.xml. See http://www.eclipse.org/forums/index.php?t=rview&goto=654424#msg_654424 .
        Hide
        Glyn Normington (c) added a comment -

        Typo fixed.

        Show
        Glyn Normington (c) added a comment - Typo fixed.

          People

          • Assignee:
            Glyn Normington (c)
            Reporter:
            Daniel Mikusa (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: