Skip to Content

[ysetplatformproperties] [Fatal Error] :1:1: Content is not allowed in prolog.

I am just learning Hybris Commerce, I shutdown the server with with <ctrl>+<c>, to the best of my knowledge I did not change the localextensions.xml, but when I go to do an ant clean, I get the following error. I did see a comment about leading characters in the localextensions.xml file, so I copied it to a new file just to make sure, no change. Does anyone have any thoughts on what is going on?


Buildfile: C:\Softwares\HYBRISCOMM64\hybris\bin\platform\build.xml
[ysetplatformproperties] [Fatal Error] :1:1: Content is not allowed in prolog.
[ysetplatformproperties] Error while evaluating file 'C:\Softwares\HYBRISCOMM64\hybris\config\localextensions.xml'. XPath Exception in file C:\Softwares\HYBRISCOMM64\hybris\bin\custom\cnbs\cnbsstorefront\extensioninfo.xml : 
[ysetplatformproperties] java.lang.RuntimeException: Error while evaluating file 'C:\Softwares\HYBRISCOMM64\hybris\config\localextensions.xml'. XPath Exception in file C:\Softwares\HYBRISCOMM64\hybris\bin\custom\cnbs\cnbsstorefront\extensioninfo.xml : 
[ysetplatformproperties]    at de.hybris.bootstrap.config.PlatformConfig.readAndScanExtensionDirsFromXMLFile(
[ysetplatformproperties]    at de.hybris.bootstrap.config.PlatformConfig.collectConfiguredExtensionsFromXMLConfig(


<path dir='${HYBRIS_BIN_DIR}' autoload='false' />

<extension name="cnbscockpits"/>
<extension name="cnbscore"/>
<extension name="cnbsfacades"/>
<extension name="cnbsfulfilmentprocess"/>
<extension name="cnbsinitialdata"/>
<extension name="cnbsstorefront"/>
<extension name="cnbstest"/>

<extension name='mcc' />
<extension name='adaptivesearchsolr' />
<extension name='adaptivesearchbackoffice' />
<extension name='adaptivesearchsamplesaddon' />
<extension name='adaptivesearchwebservices' />
<extension name='b2bcommercebackoffice' />
<extension name='solrfacetsearchbackoffice' />

<extension name='ycommercewebservices' />
<extension name='ycommercewebservicestest' />
<extension name='apparelstore' />
<extension name='electronicsstore' />
<extension name='powertoolsstore' />
<extension name='solrserver' />
<extension name='acceleratorwebservicesaddon' />
<extension name='b2bacceleratoraddon' />
<extension name='commerceorgaddon' />
<extension name='commerceorgsamplesaddon' />
<extension name='orderselfserviceaddon' />
<extension name='assistedservicestorefront' />
<extension name='assistedservicewebservices' />
<extension name='customerticketingaddon' />
<extension name='customersupportbackoffice' />
<extension name='rulebuilderbackoffice' />
<extension name='couponbackoffice' />
<extension name='droolsruleengineservices' />
<extension name='couponfacades' />
<extension name='promotionenginesamplesaddon' />
<extension name='textfieldconfiguratortemplatebackoffice' />
<extension name='textfieldconfiguratortemplateaddon' />
<extension name='assistedserviceatddtests' />
<extension name='promotionengineatddtests' />
<extension name='textfieldconfiguratortemplateatddtests' />
<extension name='cmswebservices' />
<extension name='smarteditwebservices' />
<extension name='permissionswebservices' />
<extension name='smarteditaddon' />
<extension name='cmssmartedit' />
<extension name='cmsbackoffice' />
<extension name='previewwebservices' />
<extension name='cmssmarteditwebservices' />
<extension name='cmsoccaddon' />
<extension name='previewpersonalizationweb' />
<extension name='personalizationcmsweb' />
<extension name='personalizationsmartedit' />
<extension name='personalizationpromotionssmartedit' />
<extension name='personalizationsampledataaddon' />
<extension name='personalizationpromotionssampledataaddon' />
<extension name='personalizationpromotions' />
<extension name='personalizationpromotionsweb' />
<extension name='personalizationservicesbackoffice' />
<extension name='personalizationpromotionsbackoffice' />
<extension name='personalizationcmsbackoffice' />
<extension name='personalizationsearchbackoffice' />
<extension name='personalizationsearchsmartedit' />
<extension name='personalizationsearchweb' />
<extension name='personalizationsearchsamplesaddon' />
<extension name='pcmbackofficesamplesaddon' />


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 21, 2019 at 09:46 AM

    Unfortunately, your localextensions.xml has been changed accidentally. To fix the problem, just add the following lines in localextensions.xml before the content you have posted and then save the localextensions.xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <hybrisconfig xmlns:xsi="" xsi:noNamespaceSchemaLocation="resources/schemas/extensions.xsd">

    Feel free to let me know if you face any further issue w.r.t. this requirement.

    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.