cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Commerce Cloud with Spartacus installation error

P000636
Active Contributor
0 Kudos
0

I am with a local installation of Sap Commerce Cloud 2011 with Spartacus following the steps of https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2011/ When i execute the sentence: install.bat -r cx-for-spa

BUILD FAILED D:\CX\SCC\hybris\bin\platform\build.xml:9: The following error occurred while executing this line: D:\CX\SCC\hybris\bin\platform\resources\ant\antmacros.xml:89: The following error occurred while executing this line: D:\CX\SCC\hybris\bin\platform\resources\ant\mavenTasks.xml:440: Java returned: 1

Total time: 3 seconds

Task :recipes:cx-for-spa:createStoreFrontExt FAILED

FAILURE: Build failed with an exception.

  • Where: Build file 'D:\CX\SCC\installer\recipes\cx-for-spa\build.gradle' line: 581
  • What went wrong: Execution failed for task ':recipes:cx-for-spa:createStoreFrontExt'.

external process returned non-zero exit code, command: [cmd, /c, set "ANT_OPTS=-Xmx1024m -Dfile.encoding=UTF-8" & set "PLATFORM_HOME=D:\CX\SCC\hybris\bin\platform" & set "ANT_HOME=D:\CX\SCC\hybris\bin\platform\apache-ant" & set "PATH=D:\CX\SCC\hybris\bin\platform\apache-ant\bin;%PATH%" & ant createConfig -Dinput.template=develop]

I have executed those steps( sets and ant ) and repeat the install setence..but this error always appears.

Any help is welcome .. thank you very much in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

hello_paras
Member
0 Kudos

@Manuel Rodriguez:
Hi Manuel,

Greetings.
I was looking for answers and bumped into this thread. have you already resolved the issue that you have mentioned above in the thread? If yes, how did you manage to resolve this?
I am trying to install SAP Commerce Cloud 2205 in my system.
Java version : 17.0.8

I am facing the same issue and looking for answers.


Error log below:
> Task :recipes:cx:createStoreFrontExt FAILED

FAILURE: Build failed with an exception.

* Where:

Build file 'C:\sap spartacus commerce\installer\recipes\cx\build.gradle' line: 581

* What went wrong:

Execution failed for task ':recipes:cx:createStoreFrontExt'.

> external process returned non-zero exit code, command: [cmd, /c, set "ANT_OPTS=-Xmx2g -Dfile.encoding=UTF-8 -Dpolyglot.js.nashorn-compat=true -Dpolyglot.engine.WarnInterpreterOnly=false --add-exports java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xpath.internal.objects=ALL-UNNAMED" & set "PLATFORM_HOME=C:\sap spartacus commerce\hybris\bin\platform" & set "ANT_HOME=C:\sap spartacus commerce\hybris\bin\platform\apache-ant" & set "PATH=C:\sap spartacus commerce\hybris\bin\platform\apache-ant\bin;%PATH%" & ant createConfig -Dinput.template=develop]

Thank you.

0 Kudos

I have run into a similar issue. The error is misleading . So re run the command with debug parameter "install.bat -r cx-for-spa --debug" and you can see the actual error.

If the error says unable to find spartacussampledata extension , it is happening due to name mismatch between localextensions.xml and extensioninfo.xml

Fix : Keep the extension name as 'spartacussampledata' in

  • hybris/bin/custom/spartacussampledata/extensioninfo.xml --> This had incorrect name with addon. Correct it to spartacussampledata
  • Verify that localextensions.xml has the correct extension name referenced as well.