Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1994

Unable to resolve resource org.apache.aries.jax.rs.whiteboard

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: jax-rs-whiteboard-1.0.8
    • Component/s: jax-rs-whiteboard
    • Labels:
      None
    • Environment:
      1. Ubuntu 18.04
      2. Java 1.8
      3. Bndtools 5.1.2

      Description

      Hello,

      I try to use aries-jax-rs-whiteboard. I took version 1.0.9 from maven. I made simple project. When I start it I have error:

      ! Failed to start bundle org.apache.aries.jax.rs.jackson-1.0.2, exception Uses constraint violation. Unable to resolve resource org.apache.aries.jax.rs.whiteboard [org.apache.aries.jax.rs.whiteboard [11](R 11.0)] because it is exposed to package 'javax.xml.bind' from resources jakarta.xml.bind-api [jakarta.xml.bind-api [7](R 7.0)] and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via two dependency chains.

      Chain 1:
      org.apache.aries.jax.rs.whiteboard [org.apache.aries.jax.rs.whiteboard [11](R 11.0)]
      import: (&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))

      export: osgi.wiring.package: javax.xml.bind
      jakarta.xml.bind-api [jakarta.xml.bind-api [7](R 7.0)]

      Chain 2:
      org.apache.aries.jax.rs.whiteboard [org.apache.aries.jax.rs.whiteboard [11](R 11.0)]
      require: (&(osgi.contract=JavaJAXRS)(version=2.1.0))

      provide: [org.apache.aries.javax.jax.rs-api [10](R 10.0)] osgi.contract; {osgi.contract=JavaJAXRS, version=[2.1.0, 2.0.0, 1.1.0]}
      org.apache.aries.javax.jax.rs-api [org.apache.aries.javax.jax.rs-api [10](R 10.0)]
      import: (osgi.wiring.package=javax.xml.bind.annotation)

      export: osgi.wiring.package: javax.xml.bind.annotation; uses:=javax.xml.bind
      export: osgi.wiring.package=javax.xml.bind
      org.apache.felix.framework [org.apache.felix.framework [0](R 0)] Unresolved requirements: [[org.apache.aries.jax.rs.whiteboard [11](R 11.0)] osgi.contract; (&(osgi.contract=JavaJAXRS)(version=2.1.0))]
      org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve resource org.apache.aries.jax.rs.whiteboard [org.apache.aries.jax.rs.whiteboard [11](R 11.0)] because it is exposed to package 'javax.xml.bind' from resources jakarta.xml.bind-api [jakarta.xml.bind-api [7](R 7.0)] and org.apache.felix.framework [org.apache.felix.framework [0](R 0)] via two dependency chains.

      Chain 1:
      org.apache.aries.jax.rs.whiteboard [org.apache.aries.jax.rs.whiteboard [11](R 11.0)]
      import: (&(osgi.wiring.package=javax.xml.bind)(version>=2.3.0)(!(version>=3.0.0)))

      export: osgi.wiring.package: javax.xml.bind
      jakarta.xml.bind-api [jakarta.xml.bind-api [7](R 7.0)]

      Chain 2:
      org.apache.aries.jax.rs.whiteboard [org.apache.aries.jax.rs.whiteboard [11](R 11.0)]
      require: (&(osgi.contract=JavaJAXRS)(version=2.1.0))

      provide: [org.apache.aries.javax.jax.rs-api [10](R 10.0)] osgi.contract; {osgi.contract=JavaJAXRS, version=[2.1.0, 2.0.0, 1.1.0]}
      org.apache.aries.javax.jax.rs-api [org.apache.aries.javax.jax.rs-api [10](R 10.0)]
      import: (osgi.wiring.package=javax.xml.bind.annotation)

      export: osgi.wiring.package: javax.xml.bind.annotation; uses:=javax.xml.bind
      export: osgi.wiring.package=javax.xml.bind
      org.apache.felix.framework [org.apache.felix.framework [0](R 0)] Unresolved requirements: [[org.apache.aries.jax.rs.whiteboard [11](R 11.0)] osgi.contract; (&(osgi.contract=JavaJAXRS)(version=2.1.0))]
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
      at aQute.launcher.Launcher.start(Launcher.java:670)
      at aQute.launcher.Launcher.startBundles(Launcher.java:650)
      at aQute.launcher.Launcher.activate(Launcher.java:556)
      at aQute.launcher.Launcher.launch(Launcher.java:398)
      at aQute.launcher.Launcher.run(Launcher.java:179)
      at aQute.launcher.Launcher.main(Launcher.java:155)
      at aQute.launcher.pre.EmbeddedLauncher.executeWithRunPath(EmbeddedLauncher.java:170)
      at aQute.launcher.pre.EmbeddedLauncher.findAndExecute(EmbeddedLauncher.java:135)
      at aQute.launcher.pre.EmbeddedLauncher.main(EmbeddedLauncher.java:52)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              akabanov Andrei Kabanov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: