Expand my Community achievements bar.

SOLVED

Dependency error in jar ..

Avatar

Level 4

Hi All ,

I have an issue where i get this below dependency error in my bundle , when i open OSGI console. 
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. Maven build of the package is 
successful , still i get this dependency error when i install the jar , so the jar is in installed mode and obviously the site is down. I am using 5.6.1 , kindly let me know how to resolve this issue. Any suggestions would be very helpful.

Thanks in advance
,RK

When I attempt to deploy a newer version of the org.apache.sling.api bundle eg 2.6 etc several other bundles stop and cannot be started.

Can anybody guide me in the right way to resolve this issue?

1 Accepted Solution

Avatar

Correct answer by
Employee

In your POM file, what versions are you setting for the dependencies below and what is the scope set to for each?:

org.apache.sling.api,version
org.apache.sling.api.request
org.apache.sling.api.resource

 

Regards,

Opkar

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

In your POM file, what versions are you setting for the dependencies below and what is the scope set to for each?:

org.apache.sling.api,version
org.apache.sling.api.request
org.apache.sling.api.resource

 

Regards,

Opkar

Avatar

Level 10

Check the versions in your instance for these package here [1] and update the same in you pom.xml

[1] http://<domain>:<port>/system/console/depfinder