Expand my Community achievements bar.

SOLVED

osgi.compendium bundle classes not found

Avatar

Level 4

Hi All, 

 

We are trying to upgrade form spring dm to eclipse gemini. Gemini has released a new version which support spring 5.x onwards. 

 

While installing the gemini extender bundle we are facing issue that some of the classes (which should ideally be in compendium bundle) are not found ? 

 

We need information  regarding whether,

1. AEM already has osgi.core and osgi.cmpn bundles installed or do we need to install them explicitly. We need version 5.0.0. 

2. Gemini extender bundle seems to rely on org.osgi.service.blueprint.reflect.ComponentMetadata or rather blueprint container service in general.

 

Caused by: java.lang.IllegalStateException: Cannot load blueprint classes java.lang.ClassNotFoundException: org.osgi.service.blueprint.reflect.ComponentMetadata not found by org.eclipse.gemini.blueprint.extender [643]
	at org.eclipse.gemini.blueprint.extender.internal.blueprint.activator.BlueprintTypeCompatibilityChecker.<init>(BlueprintTypeCompatibilityChecker.java:40) [org.eclipse.gemini.blueprint.extender:3.0.0.M01]
	at org.eclipse.gemini.blueprint.extender.internal.blueprint.activator.BlueprintLoaderListener.start(BlueprintLoaderListener.java:50) [org.eclipse.gemini.blueprint.extender:3.0.0.M01]
	at org.eclipse.gemini.blueprint.extender.internal.boot.ChainActivator.start(ChainActivator.java:93) [org.eclipse.gemini.blueprint.extender:3.0.0.M01]
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:698) [org.apache.felix.webconsole:4.3.8]
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2402)
	... 58 common frames omitted

 

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

if dependencies are available in AEM then you don't need to install those in AEM because bundle with higher version always get activated and if there are corresponding dependent bundles then you may endup installing lot of bundles and activate and deactivate others. So not advisable to make changes in AEM.

 

Though you can go to aem depfinder and get dependencies from AEM and add those dependency in maven with scope provided just for compilation.

 

I am not sure about the other error which is

org.osgi.service.blueprint.reflect.ComponentMetadata not found by org.eclipse.gemini.blueprint.extender [643]

Please https://www.eclipse.org/forums/index.php/t/171849/ check if helps

 

 

 



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

if dependencies are available in AEM then you don't need to install those in AEM because bundle with higher version always get activated and if there are corresponding dependent bundles then you may endup installing lot of bundles and activate and deactivate others. So not advisable to make changes in AEM.

 

Though you can go to aem depfinder and get dependencies from AEM and add those dependency in maven with scope provided just for compilation.

 

I am not sure about the other error which is

org.osgi.service.blueprint.reflect.ComponentMetadata not found by org.eclipse.gemini.blueprint.extender [643]

Please https://www.eclipse.org/forums/index.php/t/171849/ check if helps

 

 

 



Arun Patidar