Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.1.3
    • Fix Version/s: JRuby 1.1.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      generic
    • Patch Submitted:
      Yes
    • Number of attachments :
      4

      Description

      GlassFish v3 is OSGi aware and at runtime needs the jruby runtime as available in installed jruby distributions. Since jruby.jar available at $JRUBY_HOME/lib/jruby.jar it fails to work.

      This is critical for us and the only possible solution is to OSGify jruby.jar. I am submitting a patch that uses Bnd utility to wrap the jruby.jar - basically adds correct Export-Package and Import-Package and some other OSGi specific headers.

      This patch expects bnd.jar to be available at build_lib. bnd.jar can be obtained from http://www.aqute.biz/repo/biz/aQute/bnd/0.0.249/bnd-0.0.249.jar

      1. build.xml.diff
        1 kB
        Vivek Pandey
      2. jruby-osgi.patch
        2 kB
        Hendy Irawan
      3. jruby-osgi-2.patch
        2 kB
        Hendy Irawan
      4. jruby-osgi-properties.bnd
        0.2 kB
        Vivek Pandey

        Activity

        Hide
        Hendy Irawan added a comment -

        This is an updated patch which also exports org.jruby.internal

        Previously I didn't export this, but I also want to modify the jruby engine at JSR223, and the JRuby JSR223 engine uses org.jruby.internal package so I have to export it too. Besides it might be useful for other people.

        Show
        Hendy Irawan added a comment - This is an updated patch which also exports org.jruby.internal Previously I didn't export this, but I also want to modify the jruby engine at JSR223, and the JRuby JSR223 engine uses org.jruby.internal package so I have to export it too. Besides it might be useful for other people.
        Hide
        Thomas E Enebo added a comment -

        We have a new patch and people want this.

        Show
        Thomas E Enebo added a comment - We have a new patch and people want this.
        Hide
        Hendy Irawan added a comment -
        Show
        Hendy Irawan added a comment - Parallel work at JSR223: https://scripting.dev.java.net/issues/show_bug.cgi?id=37
        Hide
        Hendy Irawan added a comment -

        Another test is available to demonstrate jruby and jsr223-jruby in OSGi working properly.

        The JSR223 for JRuby is already updated in JSR223 CVS (see https://scripting.dev.java.net/issues/show_bug.cgi?id=37 ), however we'll need to wait JSR223 team to release the updated JARs.

        Test project available at (SVN):

        https://scm.ops4j.org/repos/ops4j/laboratory/users/ceefour/jruby-jsr223-test

        To test:

        mvn install pax:provision

        The required dependencies (jsr223-jruby, jruby) must be available in your local Maven repo.

        Show
        Hendy Irawan added a comment - Another test is available to demonstrate jruby and jsr223-jruby in OSGi working properly. The JSR223 for JRuby is already updated in JSR223 CVS (see https://scripting.dev.java.net/issues/show_bug.cgi?id=37 ), however we'll need to wait JSR223 team to release the updated JARs. Test project available at (SVN): https://scm.ops4j.org/repos/ops4j/laboratory/users/ceefour/jruby-jsr223-test To test: mvn install pax:provision The required dependencies (jsr223-jruby, jruby) must be available in your local Maven repo.
        Hide
        Thomas E Enebo added a comment -

        Fixed in commit 7437. I applied the latest patch and it seems to work after being bundled via 'ant dist'. I also updated our poms to reflect bnd as a build dependency. I did not test this, but as I have some other heinious maven work before 1.1.4 release I will deal with any mistakes then.

        Show
        Thomas E Enebo added a comment - Fixed in commit 7437. I applied the latest patch and it seems to work after being bundled via 'ant dist'. I also updated our poms to reflect bnd as a build dependency. I did not test this, but as I have some other heinious maven work before 1.1.4 release I will deal with any mistakes then.

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Vivek Pandey
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: