Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unable to resolve Zookeeper dependency issues

Avatar

Avatar
Level 1
SumanSatija4
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
SumanSatija4
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
SumanSatija4
Level 1

17-09-2020

Greetings !!

I was trying to implement the below exercise :

https://helpx.adobe.com/experience-manager/using/aem_solr64.html 

I just replaced the deprecated methods used in this exercise with the latest ones.

The build is successful. 

But after deployement, solr-plugin - Core bundle is in installed state due to following issues :

org.apache.zookeeper -- Cannot be resolved
org.apache.zookeeper.data -- Cannot be resolved
org.apache.zookeeper.server.auth -- Cannot be resolved
org.json,version=[20090211.0,20090212) from com.adobe.granite.bundles.json (50)
org.json.simple -- Cannot be resolved

 

I also tried adding latest and different versions of zookeeper in pom.xml. But the issue remains same.

I also tried converting zookeeper jar into bundle and then deploying the same on felix console. Still the same issue persists.

 

Thanks in advance for help !!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct Reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct Reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

18-09-2020

@SumanSatija4 -
After adding the dependency in Root pom.xml you need to follow below steps:

1. Add the dependency in the ui.app pom.xml :
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</dependency>

2. Ebed this dependency in ui.app pom.xml:
<embedded>
<groupId>org.apache.zookeeper</groupId>
<target>/apps/<project-name>/install</target>
<filter>true</filter>
</embedded>


This will definitely resolve your issue. Refer my article on converting a Jar to Bundle https://aemsimplifiedbynikhil.wordpress.com/2020/08/23/resolve-dependencies-by-converting-jar-to-bun...

 

Thanks,
Nikhil Kumar

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

17-09-2020

@SumanSatija4,

You may need to take additional steps to make available the zookeeper library in the OSGI container by making it into a bundle. Try following Adobe's guide on how to convert a jar file into an OSGI bundle, and let me know how it goes, https://helpx.adobe.com/uk/experience-manager/kb/ConvertAJarIntoOsgiBundle.html

Once the libraries are available in the OSGI container, you should be able to see the org.apache.zookeeper library as a resolved bundle. 

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

707 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

17-09-2020

Hi @SumanSatija4,

Check if the zookeeper bundle that you created is active and is exporting the desired packages with expected version (Exported Packages section of your zookeeper bundle)