on 10-13-2015 5:16 PM
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?
Set generate and autocreate as false and removed the extends. It should work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.