Facing issues in bundle resolution | Community
Skip to main content
RitendraS11
New Participant
July 6, 2017
Solved

Facing issues in bundle resolution

  • July 6, 2017
  • 11 replies
  • 9186 views

Hi All,

I am trying to integrate OrientDB with a simple AEM application. after the build, I am getting the error in osgi console as:

Imported Packagescom.sun.jdi -- Cannot be resolved and overwritten by Boot Delegation
com.sun.jdi.connect -- Cannot be resolved and overwritten by Boot Delegation
com.sun.jdi.event -- Cannot be resolved and overwritten by Boot Delegation
com.sun.jdi.request -- Cannot be resolved and overwritten by Boot Delegation

In sling.properties file, as we used to add the below line

sling.bootdelegation.sun=sun.*,com.sun.*

I am using AEM 6.2, so this particular line is already present in sling.properties file. I am not able to get the pointer as what needs to be done to fix the issue.

Thanks in advance!

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 RitendraS11

Thanks a lot, everyone!!!

I have fixed the issue. I had referred the below URLs for resolving corresponding bundle issues:

  1. jdk.nashorn.api.scripting -- Cannot be resolved

https://github.com/mszu/nashorn-scripting-api-fragment

  1. javax.persistence -- Cannot be resolved
    javax.persistence.criteria -- Cannot be resolved
    javax.persistence.metamodel -- Cannot be resolved
    javax.persistence.spi -- Cannot be resolved

http://www.java2s.com/Code/Jar/j/Downloadjavaxpersistence203jar.htm

  1. javax.annotation.meta -- Cannot be resolved

http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22jsr305%22

11 replies

Techaspect_Solu
New Participant
July 6, 2017

Hi

Have you tried adding the below dependency in your pom file.

<dependency>

    <groupId>com.sun</groupId>

    <artifactId>tools</artifactId>

    <version>1.5.0</version>

    <scope>system</scope>

</dependency>

Thanks.