Cannot resolve imported package in servlet bundle | Community
Skip to main content
stiegjo22
Level 4
Aug 22, 2023 3:17 PM UTC
Solved

Cannot resolve imported package in servlet bundle

I'm running AEM 6.5.17 (with uber-jar 6.5.17) and I've gone through the steps to install a third party package in my local author instance. However the bundle is not active and I see the following issues under imported packages:

 

However the bundle is not active and I see the following issues under imported packages:

org.apache.commons.text,version=[1.10,2) -- Cannot be resolved
org.apache.sling.api.request,version=[2.7,3) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.13,3) -- Cannot be resolved

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
iamnjain
iamnjainAccepted solution
New Participant
Aug 22, 2023 3:45 PM UTC

You can search in dependency finder if any other version for these dependencies is not installed on your instance.

 

http://localhost:4502/system/console/depfinder

 

Put package id like this in serach box :
org.apache.commons.text

 

If it's not installed, then install it manually from bundles console.

 

Hope this helps!

4 replies

iamnjain
New Participant
Aug 22, 2023 3:30 PM UTC

Hi @stiegjo22 

 

Can you please system console bundles screen snapshot which have this bundle dependency errors which is stoping this bundle to be active?

 

Translate
stiegjo22
stiegjo22Author
Level 4
Aug 22, 2023 3:34 PM UTC

Please see screenshot.

Translate
iamnjain
iamnjainAccepted solution
New Participant
Aug 22, 2023 3:45 PM UTC

You can search in dependency finder if any other version for these dependencies is not installed on your instance.

 

http://localhost:4502/system/console/depfinder

 

Put package id like this in serach box :
org.apache.commons.text

 

If it's not installed, then install it manually from bundles console.

 

Hope this helps!

Translate
Harwinder-singh
New Participant
Aug 22, 2023 3:29 PM UTC