Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-602

OpenWebBeans OpenEJB integration OSGi bundle declares the wrong version for the javax.transaction package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.1.4
    • None
    • None

    Description

      The OpenWebBeans OSGi bundle for integrating with OpenEJB declares a package import for javax.transaction at version 5.0.0. This is not the correct version for javax.transaction, which should be version 1.1.0.

      The correct version range for this import should be [1.1,2) or [1.1,1.2) if any javax.transaction interfaces are being implemented.

      This packaging error prevents the bundle from being able to be deployed correctly in an OSGi runtime.

      Other locations in the OpenWebBeans project import at version 1.1, which is correct, however they do not specify version ranges and they probably should.

      [Framework Event Dispatcher] DEBUG openwebbeans-openejb - FrameworkEvent ERROR
      org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: javax.transaction; version="5.0.0"
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)
      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
      at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
      at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
      at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)

      Attachments

        Activity

          People

            dblevins David Blevins
            timothyjward Timothy James Ward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: