Multiple OSGI components showing in /system/console/components for a particular OSGI component | Community
Skip to main content
May 10, 2021
Solved

Multiple OSGI components showing in /system/console/components for a particular OSGI component

  • May 10, 2021
  • 2 replies
  • 930 views

I have 2 bundles "bundle A" & "bundle B" in my project

Bundle A has class com.test.myproject.TestService

Bundle B has the package com.test.myproject but class TestService is not there 

Test service is a OSGI component.

 

In /system/console/components

TestService is showing up twice (from both the Bundles)

 

Can anyone help me on this

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 Ritesh_Mittal

Hi @vaibhavjain302 ,

 

Do you have two different versions of same module with different export options. When you deploy and install the application then only one bundle is being overridden or both. Is it possible you uninstall both the bundles and install again and see if only one bundle is reflecting. BTW, OSGI supports multiple versions of same bundle.

 

An explanation you can find here

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
May 10, 2021

@vaibhavjain302 what type of deployment are you using?

 

AEM on premise vs AEM AMS vs AEM Cloud?

 

What is the AEM Version?

 

Are you using Cloud Manager?

 

Ideally we follow different package structure for different bundles.. is there any specific reason for using same package from both bundles? I suspect that it could be because of export-package notation which gets tagged to bundle on build.. 

 

Please cross check 

Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 11, 2021

Hi @vaibhavjain302 ,

 

Do you have two different versions of same module with different export options. When you deploy and install the application then only one bundle is being overridden or both. Is it possible you uninstall both the bundles and install again and see if only one bundle is reflecting. BTW, OSGI supports multiple versions of same bundle.

 

An explanation you can find here