Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3967

jackson-jaxrs bundle missing in Fuse 6.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Can't Do
    • Major
    • None
    • jboss-fuse-6.2
    • None
    • % %

    Description

      In Fuse 6.2 distribution we have the below bundle missing or absent, which was not the case in Fuse 6.1, where this bundle was present by default.
      JBossFuse:karaf@root> osgi:install -s mvn:org.codehaus.jackson/jackson-jaxrs/1.9.12

      If you do want to use this bundle, you ideally have to copy the bundle from Fuse 6.1 distribution and use in Fuse 6.2, but there are different results,

      • The state of the bundle is 'ACTIVE' when you deploy in Fuse 6.1 with the above command
      • The state of the bundle is 'INSTALLED' when you deploy in Fuse 6.2

      The workaround is to use a higher version of the bundle, which solves the issue. However, at times, you get into issues pertaining to OSGi classloading such as the below,

      JBossFuse:karaf@root> osgi:install -s wrap:file:///${fuse.home}/extras/jersey-json-1.18.jar
      Bundle ID: 456
      Error executing command: Error installing bundles:
      Unable to start bundle wrap:file:///C:/jboss-fuse-6.2.0.redhat-133/extras/jersey-json-1.18.jar: Uses constraint violation. Unable to resolve bundle revision com.sun.jersey.json [456.0] because it is exposed to package 'jav
      ax.ws.rs' from bundle revisions com.sun.jersey.core [431.0] and org.apache.servicemix.specs.jsr339-api-2.0 [110.0] via two dependency chains.

      Chain 1:
      com.sun.jersey.json [456.0]
      import: (&(osgi.wiring.package=javax.ws.rs)(version>=1.1.0)(!(version>=2.0.0)))

      export: osgi.wiring.package=javax.ws.rs
      com.sun.jersey.core [431.0]

      Chain 2:
      com.sun.jersey.json [456.0]
      import: (&(osgi.wiring.package=org.codehaus.jackson.jaxrs)(version>=1.9.0)(!(version>=2.0.0)))

      export: osgi.wiring.package=org.codehaus.jackson.jaxrs; uses:=javax.ws.rs
      jackson-jaxrs [423.0]
      import: (osgi.wiring.package=javax.ws.rs)

      export: osgi.wiring.package=javax.ws.rs
      org.apache.servicemix.specs.jsr339-api-2.0 [110.0]

      Attachments

        Issue Links

          Activity

            People

              rhn-support-vgohel Viral Gohel
              rhn-support-vgohel Viral Gohel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: