Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Code not reflecting after build, duplicate instances of components is getting created.

Avatar

Community Advisor

Hi Guys,

 

The code deployed is not getting reflected in our instances lately, not sure what is causing the issue all of a sudden. 

We have observed there are duplicate component instances of the same implementation were getting created under -- .../system/console/components window.

 

As a workaround, deactivating the old duplicate one sometimes solves the issue w.r.t to servlets, but it seems to be affecting the configuration as well and deactivating is having no effect; It would reappear when the instance restarts.

 

How can we delete these duplicates and prevent the same from happening?

 

Have any of you faced a similar issue?

 

we have already tried these- http://www.aemcq5tutorials.com/tutorials/duplicated-osgi-configurations-upgrade/

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Thanks for the replies,

we have figured out the issue-

it was due to the scope defined in the maven dependency, we had to change from compile to provided in the pom file.

View solution in original post

8 Replies

Avatar

Community Advisor

@Manu_Mathew_ Has there been any change in the component ID for these components? Or any change in the symbolic name of the bundles?

 


Aanchal Sikka

Avatar

Community Advisor

@aanchal-sikka it's with the same name, with different component ids-

Manu_Mathew__0-1686316792532.png

 

 

Avatar

Community Advisor

The duplications are only in your custom OSGI components? Did you upgrade anything lately? Are you able to reproduce this constantly locally? I think would be valuable to understand if this is related to your code or to the AEM instance



Esteban Bustamante

Avatar

Community Advisor

@EstebanBustamante Yes mainly noticed for custom OSGI components, and yes it is reproducing locally as well.

 

Avatar

Community Advisor

I think once it happened to me, but I don't really remember how I solved it. Can you try to delete every reference from your project and then install an old version(release) of your code? Locally of course. If that works, just try to install the latest from your code, that can give you an idea if there is something in your code that recently introduced such odd behavior.



Esteban Bustamante

Avatar

Community Advisor

Do you see more than one bundle of your project as well installed on your aem instance?

Avatar

Correct answer by
Community Advisor

Thanks for the replies,

we have figured out the issue-

it was due to the scope defined in the maven dependency, we had to change from compile to provided in the pom file.