Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Cannot be resolved but is not required and overwritten by Boot Delegation while Migrating from 6.2 to 6.5

Avatar

Level 1

Hi Team, We are migrating from 6.2 to 6.5 and on top of that installed 6.5.15, we were able to resolve dependency issues in all bundles except one bundle. Getting Boot deligation issues.

Please find the screens shots of bundle and can someone let me know how to resolve the following dependencies.

Bundle:

srinivasreddyaem_0-1684784960886.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@srinivasreddyaem welcome to AEM Experience League communities.. Great place to co-learn, collaborate and communicate.. 

 

For your issue, sun.io related packages are related to jre and comes with sling container.. so even though your bundle depends on some other external bundle dependencies to get these packages, sling ignores them and resolve dependencies from container only. That's what boot delegation means.. try excluding those dependencies from your bundle pom

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@srinivasreddyaem welcome to AEM Experience League communities.. Great place to co-learn, collaborate and communicate.. 

 

For your issue, sun.io related packages are related to jre and comes with sling container.. so even though your bundle depends on some other external bundle dependencies to get these packages, sling ignores them and resolve dependencies from container only. That's what boot delegation means.. try excluding those dependencies from your bundle pom

Avatar

Level 3

I encountered a similar issue when updating the JDK version from JDK 8 to JDK 11. My custom bundle was failing with the error:

java.sql -- Cannot be resolved and overwritten by Boot Delegation

I'm posting the solution here, as it might be helpful for others facing the same issue.

The solution that worked for me was to exclude the java.sql dependency from the pom.xml file by using:

Import-Package: !java.sql,javax.annotation;version=0.0.0,*
Reference: https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html