Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Cannot be resolved for some libs

Avatar

Avatar
Validate 1
Level 1
vasim_akram_sha
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
vasim_akram_sha
Level 1

Like

1 like

Total Posts

9 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
vasim_akram_sha
Level 1

01-03-2016

Hi,

    I am using AEM 5.6.1. I am getting following error.

        org.apache.sling.api,version=[2.3,3) -- Cannot be resolved
        org.apache.sling.api.request,version=[2.4,3) -- Cannot be resolved
        org.apache.sling.api.resource,version=[2.5,3) -- Cannot be resolved
        org.apache.sling.models.annotations,version=[1.0,2) -- Cannot be resolved
        org.apache.sling.settings,version=[1.3,2) -- Cannot be resolved.

 

In /system/console/depfinder I found org.apache.sling.api depencies as 

<dependency>
    <groupId>org.apache.sling</groupId>
    <artifactId>org.apache.sling.api</artifactId>
    <version>2.4.3-R1488084</version>
    <scope>provided</scope>
</dependency>

In pom.xml file I mentioned same dependencies. Still I am getting same issue.  

Replies

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

275 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

275 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

01-03-2016

Are you facing issue when you deploy your project or when you open any default give project.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

01-03-2016

We have a community article that shows you how to succcessfully use SLing APIs in 5.x. I think your issue is your POM dependencies. See this article: 

Using Sling APIs to retrieve content from the Adobe Experience Manager Repository

Hope this helps

Avatar

Avatar
Ignite 1
Level 1
vandanasharma
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Ignite 1
Level 1
vandanasharma
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
View profile
vandanasharma
Level 1

16-05-2020

Hi,

 

I am getting error - org.apache.sling.event.jobs,version=[1.5,2] -- Cannot be resolved

ERROR* [FelixDispatchQueue] IA_Wrapper_Services.core FrameworkEvent ERROR (org.osgi.framework.BundleException: Unable to resolve IA_Wrapper_Services.core [582](R 582.0): missing requirement [IA_Wrapper_Services.core [582](R 582.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.event.jobs)(version>=1.5.0)(version<=2.0.0)) Unresolved requirements: [[IA_Wrapper_Services.core [582](R 582.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.event.jobs)(version>=1.5.0)(version<=2.0.0))])
org.osgi.framework.BundleException: Unable to resolve IA_Wrapper_Services.core [582](R 582.0): missing requirement [IA_Wrapper_Services.core [582](R 582.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.event.jobs)(version>=1.5.0)(version<=2.0.0)) Unresolved requirements: [[IA_Wrapper_Services.core [582](R 582.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.event.jobs)(version>=1.5.0)(version<=2.0.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.Felix.setActiveStartLevel(Felix.java:1539)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Unknown Source)

 

Please reply