Cannot resolve imported package in servlet bundle | Community
Skip to main content
stiegjo22
New Participant
August 22, 2023
Solved

Cannot resolve imported package in servlet bundle

  • August 22, 2023
  • 2 replies
  • 4153 views

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.
Best answer by iamnjain

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!

2 replies

iamnjain
New Participant
August 22, 2023

Hi @stiegjo22 

 

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

 

stiegjo22
stiegjo22Author
New Participant
August 22, 2023

Please see screenshot.

iamnjain
iamnjainAccepted solution
New Participant
August 22, 2023

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!

Harwinder-singh
New Participant
August 22, 2023