Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1933

Please enable dynamic imports on JGroups (3.5.1.Final) and upwards

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 3.6.4
    • 3.5.1
    • None

      We've run into an issue deploying JGroups inside Fuse where we end up with a class not found exception:

      java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: net.sf.ehcache.distribution.jgroups.JGroupEventMessage
      

      In OSGi there is a command dynamic-imports that allows us change a deployed bundle so that it uses dynamic-imports. For example:

      [ 310] [Active     ] [Created     ] [       ] [   60] My Application Implementation (0.0.26)
      [ 372] [Active     ] [            ] [       ] [   60] jgroupreplication.wrapper (1.7.0)
      [ 374] [Active     ] [            ] [       ] [   60] JGroups (3.5.1.Final)
      

      Running the following command resolves our wiring problem:

      JBossFuse:karaf@root> dynamic-import 374
      Enabling dynamic imports on bundle JGroups (3.5.1.Final) [374]
      

      Would it be possible to build this jar with:

      <DynamicImport-Package>*</DynamicImport-Package>

      In place?

      The customer in question has this featured deployed in many containers and manually logging into all the containers to run this command is not a good use of time.

              rhn-engineering-bban Bela Ban
              rhn-support-sjavurek Susan Javurek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: