Facing issues in bundle resolution | Community
Skip to main content
RitendraS11
Level 4
Jul 6, 2017 11:48 AM UTC
Solved

Facing issues in bundle resolution

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.
RitendraS11
RitendraS11Accepted solution
Level 4
Jul 11, 2017 9:10 AM UTC

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
Level 7
Jul 6, 2017 12:46 PM UTC

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.

Translate