Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4155

oaj.oak.spi.security.authentication.credentials not exported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0, 1.6.0
    • 1.5.1, 1.6.0
    • None
    • None

    Description

      Unable to load oak-auth-external in osgi environments [1]. The package org.apache.jackrabbit.oak.spi.security.authentication.credentials
      does not have an entry in Export-package declaration in the pom though it has a export version of 1.0.

      Adding the entry in the Export-package fixes the issue.

      [1]

      30.03.2016 14:53:15.040 *ERROR* [FelixDispatchQueue] org.apache.jackrabbit.oak-auth-external FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.jackrabbit.oak-auth-external [89](R 89.0): missing requirement [org.apache.jackrabbit.oak-auth-external [89](R 89.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.credentials)(version>=1.0.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.jackrabbit.oak-auth-external [89](R 89.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.credentials)(version>=1.0.0)(!(version>=2.0.0)))])
      org.osgi.framework.BundleException: Unable to resolve org.apache.jackrabbit.oak-auth-external [89](R 89.0): missing requirement [org.apache.jackrabbit.oak-auth-external [89](R 89.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.credentials)(version>=1.0.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.jackrabbit.oak-auth-external [89](R 89.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.credentials)(version>=1.0.0)(!(version>=2.0.0)))]
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      	at java.lang.Thread.run(Thread.java:745)
      30.03.2016 14:53:15.040 *ERROR* [FelixDispatchQueue] org.apache.jackrabbit.oak-auth-ldap FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve org.apache.jackrabbit.oak-auth-ldap [90](R 90.0): missing requirement [org.apache.jackrabbit.oak-auth-ldap [90](R 90.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.external)(version>=2.0.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.jackrabbit.oak-auth-external [89](R 89.0): missing requirement [org.apache.jackrabbit.oak-auth-external [89](R 89.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.credentials)(version>=1.0.0)(!(version>=2.0.0)))] Unresolved requirements: [[org.apache.jackrabbit.oak-auth-ldap [90](R 90.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.external)(version>=2.0.0)(!(version>=3.0.0)))])
      org.osgi.framework.BundleException: Unable to resolve org.apache.jackrabbit.oak-auth-ldap [90](R 90.0): missing requirement [org.apache.jackrabbit.oak-auth-ldap [90](R 90.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.external)(version>=2.0.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.jackrabbit.oak-auth-external [89](R 89.0): missing requirement [org.apache.jackrabbit.oak-auth-external [89](R 89.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.credentials)(version>=1.0.0)(!(version>=2.0.0)))] Unresolved requirements: [[org.apache.jackrabbit.oak-auth-ldap [90](R 90.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication.external)(version>=2.0.0)(!(version>=3.0.0)))]
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

          Activity

            People

              dominique.jaeggi Dominique Jäggi
              amitjain Amit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: