Skip to Content
author's profile photo Former Member
Former Member

Unable to create ycommercewebservices based extension

Whenever I try to build hybris platform by ant all I get following exceptions. I created a 'demowebservices' extension based on the 'ycommercewebservices'. However, extension structure got created but ant all fails. I already removed 'ycommercewebservices' from 'localextensions.xml'.

*hybris\bin\platform\resources\ant\antmacros.xml:767: java.lang.IllegalArgumentException: cannot merge namespace ((demowebservices)) into (()) due to duplicate type code 'basesitecollection' : BaseSiteCollection::((demowebservices))::YCollectionType[demowebservices-items.xml:15(CollectionTypeTagListener)]<>BaseSiteCollection::((ycommercewebservices))::YCollectionType[ycommercewebservices-items.xml:15(CollectionTypeTagListener)]

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2015 at 09:54 AM

    if you are doing ant all from ee for the first time after modulegen, then you might face this issue. Refresh ee or delete and re-import the project in ee.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 21, 2019 at 02:30 PM

    Hi,

    Please check for dependency of 'ycommercewebservices' extension in any of the extensioninfo.xml file.
    I came across this error while creating an extension from "ycommercewebservices" ext-template and got it resolved by following below steps.

    1.)Create a custom extension through "ant extgen"
    2.)Include the (created) custom extension and comment "ycommercewebservices" extension in "localextensions.xml".
    3.)Perform Ee->File Search-> and comment the below line:

    <!-- <requires-extension name="ycommercewebservices"/> -->

    4.)Perform "ant" and build the system.
    5.)Start the server.
    6.)Perform System "Update" from HAC.

    Hope this resolves the issue!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2020 at 09:06 AM

    This can be resolved simply by removing below two extensions from your localextension.xml

    <!--<extension name='ycommercewebservices' /> -->

    <!-- <extension name='ycommercewebservicestest' /> -->

    Then build will not fail.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.