Reference to system properties specified using JAVA_OPTS_APPEND fails startup of OpenShift pod for JBoss EAP
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7.3 (Container image for OpenShift)
Issue
-
Configuration adds
-Dproperty=valuetoJAVA_OPTS_APPEND -
The property/value is expected to be accessible for reference within
standalone-openshift.xmland application code in the runtime JVM- This was working with the JBoss EAP 7.2 container images for OpenShift
-
During startup of JBoss EAP 7.3 container images for OpenShift, pod failure occurs prior to starting the runtime JVM
ERROR Error applying /tmp/cli-configuration-script-<random_numeric_value_here>.cli CLI script.
Resolution
-
As a workaround (when no customization via standard environment based integration points - e.g. datasources specified using DB_SERVICE_PREFIX_MAPPING - is required), pre-processing by the embedded server can be disabled using a custom version of the
/opt/eap/bin/openshift-launch.shwith theconfigure_serverstep commented out.... function runServer() { ... # configure_server # <= COMMENTED OUT THIS LINE ... } ... -
This issue will be addressed in a future release1.
Root Cause
This is a known defect (This content is not included.CLOUD-4001).
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.