Showing results for 
Search instead for 
Did you mean: 

Xpathexpressionexception error ?

0 Kudos


I had the below error :

Buildfile: /opt/erabia/hybris/bin/platform/build.xml [echo] /opt/erabia/hybris/bin/platform/tomcat/bin [ysetplatformproperties] [Fatal Error] :129:7: The string "--" is not permitted within comments.

BUILD FAILED /opt/erabia/hybris/bin/platform/build.xml:20: The following error occurred while executing this line: /opt/erabia/hybris/bin/platform/resources/ant/antmacros.xml:114: XPathExpressionException when scanning for the autoload mode

Any help appreciated !

Former Member
0 Kudos

Hello, Did you resolve it ?

I am also getting the same error in Hybris 5.7 version.

Please let me know if its fixed.

Thank you!!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member


This problem is related to localextension.xml, you should to check it .

Hi Saleh

It is because you have used "--" string within your comments in build.xml file you might have deleted some > or < characters by mistake. check your platform/build.xml for any occurrences of -- string in the comments.


Former Member
0 Kudos

Hi " Xpathexpressionexception " is purely related to xml file exception this may come into picture only if you add some extra characters outside of the tag in the xml file or even if you miss any of the opening or ending tags.You may not see the root path of the exception from where it is causing.check the xml files properly which you have modified .