cancel
Showing results for 
Search instead for 
Did you mean: 

cannot merge namespace

Former Member
0 Kudos

Hi experts,

While trying to integrate with vivocha, I am facing an issue of "java.lang.IllegalArgumentException: cannot merge namespace ((addoncommon)) into (()) due to duplicate type code 'abstractmediacontainercomponent' : AbstractMediaContainerComponent::((addoncommon))::YComposedType[addoncommon-items.xml:56(ItemTypeTagListener)]<>AbstractMediaContainerComponent::((acceleratorcms))::YComposedType[acceleratorcms-items.xml:661(ItemTypeTagListener)]", .

I analysed the issue as follows: acceleratorcms-items.xml and addoncommon-items.xml , both contain below entry:

itemtype code="AbstractMediaContainerComponent" autocreate="true" generate="true" abstract="true" extends="SimpleCMSComponent" jaloclass="de.hybris.platform.acceleratorcms.jalo.components.AbstractMediaContainerComponent"

How can I keep both the entries in respective items.xml and also save the ant all from failing?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Set generate and autocreate as false and removed the extends. It should work

Former Member
0 Kudos

First of all thanks Konrad, I did the changes as per your suggestions but could not get it working. I have attached the items definition , also I cannot put the dependency of addoncommon in the extensioninfo.xml of acceleratorcms, as it results in a cyclic dependency. Can you suggest anything?link text

Former Member
0 Kudos

The addoncommon extension is from Hybris Labs and seems to be 2 years old. You should modify that one to extend the acceleratorcms-items by removing the "extends" clause. This causes that the item definition amends the type, but does not derive the type from a previous type and allows for modifying a type after it has been created. That way the core acceleratorcms one would be master and the labs addon extends it. You need to set up a dependency (extensions.xml) to acceleratorcms so that this build before.