SAP Knowledge Base Article - Preview

3165281 - Commerce Cloud build fails with error "The import org.apache.logging.log4j.core cannot be resolved"

Symptom

When performing a build from Commerce Cloud in the Public Cloud, the build fails with the following error:

INFO d.h.c.e.Executor [Thread-10] stdout:    [yjavac] ----------
INFO d.h.c.e.Executor [Thread-10] stdout:    [yjavac] 1. ERROR in /opt/workspace/build/customer-project/core-customize/hybris/bin/custom/xyz/CustomClass.java (at line 15)
d.h.c.e.Executor [Thread-10] stdout:    [yjavac]  import org.apache.logging.log4j.core.<log4jClass>;
d.h.c.e.Executor [Thread-10] stdout:    [yjavac]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INFO d.h.c.e.Executor [Thread-10] stdout:    [yjavac] The import org.apache.logging.log4j.core cannot be resolved
INFO d.h.c.e.Executor [Thread-10] stdout:    [yjavac] ----------
INFO d.h.c.e.Executor [Thread-10] stdout:    [yjavac] 1 problem (1 error)
INFO d.h.c.e.Executor [Thread-11] stderr: 
INFO d.h.c.e.Executor [Thread-11] stderr: BUILD FAILED

The same builds may have been previously working prior to 14-Mar-2022 


Read more...

Environment

Commerce Cloud in the Public Cloud

Product

SAP Commerce Cloud all versions

Keywords

KBA , CEC-HCS-CCAZ-BUILD , Environment builds , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.