on 02-05-2019 8:33 AM
After creating extension through module gen(test extension) and following the below steps 1) Add your extension to your D:\TestHybris\hybris\config/localextensions.xml
2) Remove the following extensions from your D:\TestHybris\hybris\config/localextensions.xml yacceleratorfulfilmentprocess,yacceleratorcore,yacceleratorfacades,yacceleratortest,yacceleratorinitialdata,yacceleratorcockpits,yacceleratorstorefront
getting the following error
BUILD FAILED D:\TestHybris\hybris\bin\platform\build.xml:20: The following error occurred while executing this line: D:\TestHybris\hybris\bin\platform\resources\ant\compiling.xml:88: The following error occurred while executing this line: D:\TestHybris\hybris\bin\platform\resources\ant\antmacros.xml:795: The following error occurred while executing this line: D:\TestHybris\hybris\bin\platform\resources\ant\antmacros.xml:798: java.lang.IllegalArgumentException: cannot merge namespace ((testcore)) into (()) due to duplicate attribute 'ApparelProduct.genders(GenderList):((testcore))::YAttributeDescriptor[testcore-items.xml:50(AttributeTagListener)][PROPERTY]' vs 'ApparelProduct.genders(GenderList):((yacceleratorcore))::YAttributeDescriptor[yacceleratorcore-items.xml:50(AttributeTagListener)][PROPERTY]' at de.hybris.bootstrap.typesystem.YNamespace.mergeNamespace(YNamespace.java:297) at de.hybris.bootstrap.typesystem.YTypeSystem.mergeNamespaces(YTypeSystem.java:82)
please suggest how do i fix this error. items.xml of yacceleratorcore and testcore(my extension's items.xml) contains GenderList collection type.
Since you have already commented/removed yacceleratorcore
, you need to check if there is an extension in your localextensions.xml
which depends on yacceleratorcore
; because if it is the case, hybris will still try to load yacceleratorcore
even if you have not declared it in localextensions.xml
.
If you have already imported the extensions in ee, using a file search for the text <requires-extension name="yacceleratorcore"/>
, you can quickly find it out. If you find any such extension, you need to remove/comment it in localextensions.xml
. My guess is that you have yacceleratorbackoffice
in your localextensions.xml
and if it is, please remove/comment it.
Another reason can be that you might have created another extension based on yacceleratorcore
, included it in the localextensions.xml
and forgot to remove/comment it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, it works !! :)
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.