Expand my Community achievements bar.

AEM bundle error: com.headwire.aemsolrsearch.services

Avatar

Level 2

Hi,

I am getting the following error in one of the bundles,

We are using AEM6.1, Java Version "1.8.0_66"

com.headwire.aemsolrsearch.services,version=[1.0,2) -- Cannot be resolved
com.headwire.aemsolrsearch.services.dto,version=[1.0,2) -- Cannot be resolved

 

Regards,

Maria Anto

3 Replies

Avatar

Level 4

This means that there is no OSGi bundle in AEM that export version 1.0,2 of this Java lib: com.headwire.aemsolrsearch.services

You need to bundle up this Java lib into an AEM OSGi bundle and export so this dependency can be satisfied. 

Avatar

Administrator

Hi

"The error message means that the OSGi framework is unable to supply a version >= 1.0 and < 2 of the com.headwire.aemsolrsearch.services Java package for a bundle B that wants to import it."

Please refer to this helpx article, 

Link:- how to handle third-party API dependencies

// how to handle third-party API dependencies

You need to add the dependency (java Lib) and bundle it with your OSGI.

Reference articles:-

Link:- http://stackoverflow.com/questions/20278236/org-apache-sling-api-resource-version-2-3-3-cannot-be-re...

Link:- http://stackoverflow.com/questions/34716568/aem-cannot-be-resolved-for-some-libs

 

I hope this would be of some help to you.

Thanks and Regards

Kautuk SAhni



Kautuk Sahni

Avatar

Level 1

Hi Maria,

Try out the following to get the bundles issue resolved.

1. Install of AEM 6.1 SP1

2. Installed the “master” branch of AEM Solr Search (I.e., version 2.0.0-SNAPSHOT). 

3. All the bundles would start