I deployed the jar file to <http://localhost:8080/system/console/bundles>
http://localhost:8080/system/console/bundles . Still I am getting the error
below.
01.06.2018 00:55:36.941 *ERROR* [FelixStartLevel] ERROR: Bundle '166' Error
starting inputstream:oauth2-oidc-sdk-5.62.jar
(org.osgi.framework.BundleException: Unable to resolve oauth2-oidc-sdk
[166](R 166.0): missing requirement [oauth2-oidc-sdk [166](R 166.0)]
osgi.wiring.package;
(&(osgi.wiring.package=com.nimbusds.jose)(version>=5.10.0)(!(version>=6.0.0)))
Unresolved requirements: [[oauth2-oidc-sdk [166](R 166.0)]
osgi.wiring.package;
(&(osgi.wiring.package=com.nimbusds.jose)(version>=5.10.0)(!(version>=6.0.0)))])
org.osgi.framework.BundleException: Unable to resolve oauth2-oidc-sdk
[166](R 166.0): missing requirement [oauth2-oidc-sdk [166](R 166.0)]
osgi.wiring.package;
(&(osgi.wiring.package=com.nimbusds.jose)(version>=5.10.0)(!(version>=6.0.0)))
Unresolved requirements: [[oauth2-oidc-sdk [166](R 166.0)]
osgi.wiring.package;
(&(osgi.wiring.package=com.nimbusds.jose)(version>=5.10.0)(!(version>=6.0.0)))]
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
Thank You.
On Thu, May 31, 2018 at 5:00 PM, Robert Munteanu <[email protected]> wrote:
> Hi Hasini,
>
> On Thu, 2018-05-31 at 16:39 +0530, Hasini Witharana wrote:
> > > Unresolved requirements: [[org.apache.sling.auth.oidc.core [164](R
> > 164.28)]
> > > osgi.wiring.package;
> > >
> > (&(osgi.wiring.package=com.nimbusds.oauth2.sdk)(version>=5.61.0)(!(ve
> > rsion>=6.0.0)))]
>
> This comprehensive but cryptic error message says that the package
> "org.apache.sling.auth.oidc.core" needs the package
> "com.nimbusds.oauth2.sdk" with version betgween 5.61.0 and 6.0.0 to
> resolve, but it could not find it.
>
> Have you tried deploying the jar file providing
> "com.nimbusds.oauth2.sdk" to Sling? You can do that from http://localho
> st:8080/system/console/bundles .
>
> Thanks,
>
> Robert
>
--
*Hasini Witharana*
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Linkedin <https://www.linkedin.com/in/hasini-witharana-185785109/>