org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved | Community
Skip to main content
Level 2
February 24, 2023
Solved

org.apache.sling.api.resource,version=[2.12,3) -- Cannot be resolved

  • February 24, 2023
  • 1 reply
  • 2177 views

Hi there,

 

I am facing below issue in my core bundle. It is not able to resolve that jar and I am not sure where to get this jar file from . Please help me.

 

 

Thanks,

Matha

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SivakumarKanoori

The error message means that the OSGi framework is couldnot able to find a version >= 2.12 and < 3 of the org.apache.sling.api.resource Java package for a bundle that wants to import it.

As a result, bundle cannot be activated, so that this bundle cannot work.

this org.apache.sling.api.resource package will be provided by the org.apache.sling.api bundle, so either you have an old version of that bundle in your system, or you have installed incompatible bundles that require a newer version of that package.

1 reply

SivakumarKanoori
Community Advisor
SivakumarKanooriCommunity AdvisorAccepted solution
Community Advisor
February 24, 2023

The error message means that the OSGi framework is couldnot able to find a version >= 2.12 and < 3 of the org.apache.sling.api.resource Java package for a bundle that wants to import it.

As a result, bundle cannot be activated, so that this bundle cannot work.

this org.apache.sling.api.resource package will be provided by the org.apache.sling.api bundle, so either you have an old version of that bundle in your system, or you have installed incompatible bundles that require a newer version of that package.

Thanks,Siva