SAP Knowledge Base Article - Preview

3314381 - Deployment fails due to missing --add-exports or --add-opens


Deployment fails and the logs are similar to:

"message":"Error initializing global application context!",
"message":"Unable to make field <access modifier> ... accessible: module xxx does not "<exports or opens> yyy" to unnamed module ...",

where xxx is a module, like:

  • java.base
  • java.xml

and yyy is a package, like:

  • java.lang.reflect
  • java.math
  • java.time
  • java.util



SAP Commerce Cloud in the Public Cloud


SAP Commerce Cloud all versions


Strong Encapsulation, Java 17, JDK 17, 17, --add-exports, --add-opens, java.base, java.xml , KBA , CEC-SCC-CLA-DEP , Deployments , 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.