Jackson JSON Processor
  1. Jackson JSON Processor
  2. JACKSON-162

jackson-xc-1.2.0.jar OSGI bundle imports org.codehaus.jackson.map.introspect, but jackson-mapper-asl-1.2.0.jar marks that package as private

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2, 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      java 6 + OSGi container (such as Felix)
    • Number of attachments :
      0

      Description

      I obtained the jackson 1.2.0 jar files from the codehaus maven repository and attempted to install and start them from an OSGi container. I observed the following:

      1. Install and start jackson-core-asl-1.2.0.jar, jackson-mapper-asl-1.2.0.jar, and jackson-xc-1.2.0.jar into a current OSGi container, such as felix.
      2. The jackson-core-asl-1.2.0.jar and jackson-mapper-asl-1.2.0.jar bundles install and start with no issues.
      3. The jackson-xc-1.2.0.jar bundle installs, but it won't start due to the fact that it has a package import dependency on org.codehaus.jackson.map.introspect.

      The Import-Package header in the manifest.mf file of jackson-xc-1.2.0.jar includes org.codehaus.jackson.map.introspect. Looking at the jackson-mapper-asl-1.2.0.jar manifest.mf file, I see that the org.codehaus.jackson.map.introspect package is not exported, but it is in the Private-Package header.

        Activity

        Hide
        Tatu Saloranta added a comment -

        Thanks for reporting this. I had tested loading and starting of Jackson bundles earlier, but probably not after latest refactoring.
        I wonder if there might be a way to have an ant task to test these. At any rate, I'll fix this issue.

        Show
        Tatu Saloranta added a comment - Thanks for reporting this. I had tested loading and starting of Jackson bundles earlier, but probably not after latest refactoring. I wonder if there might be a way to have an ant task to test these. At any rate, I'll fix this issue.
        Hide
        Tatu Saloranta added a comment -

        Added import for introspect package; as well as another similarly missing dependency for jax-rs. All 4 bundles now load ok (with jax-rs needing jax-rs api jar).
        Will backport build fix to 1.2 branch, in case 1.2.1 needs to be released for some other bug fixes.

        Show
        Tatu Saloranta added a comment - Added import for introspect package; as well as another similarly missing dependency for jax-rs. All 4 bundles now load ok (with jax-rs needing jax-rs api jar). Will backport build fix to 1.2 branch, in case 1.2.1 needs to be released for some other bug fixes.
        Hide
        Troy Waldrep added a comment -

        This is great news! Regarding the question about an ant task to test the OSGi bundles, I'm not sure. There is a pretty decent tool under the OPS4J PAX umbrella called "Pax Exam" that you may be able to coerce into working from ant (you might have to use the maven plugin for ant). The link follows:

        http://wiki.ops4j.org/display/paxexam/Pax+Exam

        Show
        Troy Waldrep added a comment - This is great news! Regarding the question about an ant task to test the OSGi bundles, I'm not sure. There is a pretty decent tool under the OPS4J PAX umbrella called "Pax Exam" that you may be able to coerce into working from ant (you might have to use the maven plugin for ant). The link follows: http://wiki.ops4j.org/display/paxexam/Pax+Exam
        Hide
        Tatu Saloranta added a comment -

        Fixed for 1.2.1 and 1.3.0.

        Show
        Tatu Saloranta added a comment - Fixed for 1.2.1 and 1.3.0.

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Troy Waldrep
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: