Skip to Content
0
Oct 18, 2019 at 03:00 PM

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

948 Views Last edit Oct 18, 2019 at 03:00 PM 2 rev

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?

error:

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(PlatformConfig.java:1336)
[ysetplatformproperties]    at de.hybris.bootstrap.config.PlatformConfig.collectConfiguredExtensionsFromXMLConfig(PlatformConfig.java:1037)

localextensions.xml:


<extensions>
<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' />

</extensions>
</hybrisconfig>