Skip to content

Commit fc41185

Browse files
committed
fixes docs related to failing WebLogic boot with configOverrides errros
1 parent 3e216e9 commit fc41185

File tree

6 files changed

+25
-16
lines changed

6 files changed

+25
-16
lines changed

docs-source/content/userguide/managing-domains/configoverrides/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ spec:
338338
339339
Incorrectly formatted override files may be accepted without warnings or errors and will not prevent WebLogic pods from booting. So, it is important to make sure that the template files are correct in a QA environment, otherwise your WebLogic Servers may start even though critically required overrides are failing to take effect.
340340
341-
On WebLogic Servers that support the `weblogic.SituationalConfig.failBootOnError` system property ( Note: It is not supported in WebLogic Server 12.2.1.3 ),
341+
On WebLogic Servers that support the `weblogic.SituationalConfig.failBootOnError` system property ( Note: It is not supported in WebLogic Server 12.2.1.3.0 ),
342342
by default the WebLogic server will fail to boot if any situational configuration files are invalid.
343-
This can be configured by using the `failBootOnSituationalError` attribute in the Domain spec to `false` to start up the WebLogic servers even with
343+
By setting the `failBootOnSituationalError` attribute in the Domain spec to `false`, you can start up the WebLogic Servers even with
344344
incorrectly formatted override files.
345345
346346
* Make sure you've followed each step in the [Step-by-step guide](#step-by-step-guide).
@@ -371,10 +371,10 @@ incorrectly formatted override files.
371371
* This directory, or a subdirectory within this directory, should contain each of your custom situational configuration files.
372372
* If it doesn't, then this likely indicates your domain resource `configOverrides` was not set to match your custom override configuration map name, or that your custom override configuration map does not contain your override files.
373373
374-
* If the Administration Server pod do start but fails to reach ready state:
375-
* Check if there is a message ` WebLogic server failed to start due to missing or invalid situational configuration files` in the Administration Server pod's `kubectl log`
376-
* This suggests that the Administration Server failed to start may be caused by errors found in the a configuration override file.
377-
* Lines containing the String `<Warning>` may be found in the Administration Server pod log to provide more hints.
374+
* If the Administration Server pod does start but fails to reach ready state:
375+
* Check for this message ` WebLogic server failed to start due to missing or invalid situational configuration files` in the Administration Server pod's `kubectl log`
376+
* This suggests that the Administration Server failure to start may have been caused by errors found in a configuration override file.
377+
* Lines containing the String `situational` may be found in the Administration Server pod log to provide more hints.
378378
* For example:
379379
* `<Jun 20, 2019 3:48:45 AM GMT> <Warning> <Management> <BEA-141323> <The situational config file has an invalid format, it is being ignored: XMLSituationalConfigFile[/shared/domains/domain1/optconfig/jdbc/testDS-0527-jdbc-situational-config.xml] because org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 3; The element type "jdbc:jdbc-driver-params" must be terminated by the matching end-tag "</jdbc:jdbc-driver-params>".`
380380
* The warning message suggests a syntax error is found in the provided configuration override file for the testDS JDBC datasource.

docs/domains/Domain.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
"type": "string"
272272
},
273273
"failBootOnSituationalError": {
274-
"description": "If true (the default), on WebLogic server that supports this feature, the WebLogic server boot would fail if any errors occur when applying situational configuration during server startup. If false, WebLogic server would start if there are errors in the situational configuration files, but some configuration overrides may be skipped.",
274+
"description": "In WebLogic Server versions that support this feature (greater than 12.2.1.3.0): \u003cli\u003eIf true (the default) the WebLogic Server would fail to boot if it encounters an error while loading situational configuration files during server startup, or if any situational configuration file has an invalid format, \u003c/li\u003e \u003cli\u003eIf false, and if there are errors in the situational configuration files, then WebLogic Server would start but some configuration overrides may be skipped.\u003c/li\u003e",
275275
"type": "boolean"
276276
},
277277
"includeServerOutInPodLog": {

docs/domains/Domain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DomainSpec is a description of a domain.
2323
| `domainHome` | string | The folder for the WebLogic Domain. Not required. Defaults to /shared/domains/domains/domainUID if domainHomeInImage is false Defaults to /u01/oracle/user_projects/domains/ if domainHomeInImage is true |
2424
| `domainHomeInImage` | Boolean | True if this domain's home is defined in the docker image for the domain. Defaults to true. |
2525
| `domainUID` | string | Domain unique identifier. Must be unique across the Kubernetes cluster. Not required. Defaults to the value of metadata.name |
26-
| `failBootOnSituationalError` | Boolean | If true (the default), on WebLogic server that supports this feature, the WebLogic server boot would fail if any errors occur when applying situational configuration during server startup. If false, WebLogic server would start if there are errors in the situational configuration files, but some configuration overrides may be skipped. |
26+
| `failBootOnSituationalError` | Boolean | In WebLogic Server versions that support this feature (greater than 12.2.1.3.0): <li>If true (the default) the WebLogic Server would fail to boot if it encounters an error while loading situational configuration files during server startup, or if any situational configuration file has an invalid format, </li> <li>If false, and if there are errors in the situational configuration files, then WebLogic Server would start but some configuration overrides may be skipped.</li> |
2727
| `image` | string | The WebLogic Docker image; required when domainHomeInImage is true; otherwise, defaults to container-registry.oracle.com/middleware/weblogic:12.2.1.3. |
2828
| `imagePullPolicy` | string | The image pull policy for the WebLogic Docker image. Legal values are Always, Never and IfNotPresent. Defaults to Always if image ends in :latest, IfNotPresent otherwise. |
2929
| `imagePullSecrets` | array of [Local Object Reference](k8s1.13.5.md#local-object-reference) | A list of image pull secrets for the WebLogic Docker image. |

docs/domains/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@
11911191
"type": "string"
11921192
},
11931193
"failBootOnSituationalError": {
1194-
"description": "If true (the default), on WebLogic server that supports this feature, the WebLogic server boot would fail if any errors occur when applying situational configuration during server startup. If false, WebLogic server would start if there are errors in the situational configuration files, but some configuration overrides may be skipped.",
1194+
"description": "In WebLogic Server versions that support this feature (greater than 12.2.1.3.0): \u003cli\u003eIf true (the default) the WebLogic Server would fail to boot if it encounters an error while loading situational configuration files during server startup, or if any situational configuration file has an invalid format, \u003c/li\u003e \u003cli\u003eIf false, and if there are errors in the situational configuration files, then WebLogic Server would start but some configuration overrides may be skipped.\u003c/li\u003e",
11951195
"type": "boolean"
11961196
},
11971197
"includeServerOutInPodLog": {

model/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainSpec.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,14 @@ public class DomainSpec extends BaseConfiguration {
106106
* @since 2.3.0
107107
*/
108108
@Description(
109-
"If true (the default), on WebLogic server that supports this feature, the WebLogic server "
110-
+ " boot would fail if any errors occur when applying situational configuration "
111-
+ " during server startup."
112-
+ " If false, WebLogic server would start if there are errors in the"
113-
+ " situational configuration files, but some configuration overrides may"
114-
+ " be skipped.")
109+
"In WebLogic Server versions that support this feature (greater than 12.2.1.3.0): "
110+
+ " <li>If true (the default) the WebLogic Server would fail to boot"
111+
+ " if it encounters an error while loading situational configuration files"
112+
+ " during server startup, or if any situational configuration file has an invalid format,"
113+
+ " </li>"
114+
+ " <li>If false, and if there are errors in the situational configuration "
115+
+ "files, then WebLogic Server would start but some configuration overrides may"
116+
+ " be skipped.</li>")
115117
private Boolean failBootOnSituationalError;
116118

117119
/**

operator/src/main/resources/scripts/startServer.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,14 @@ function waitForShutdownMarker() {
113113
logged=false
114114
while true; do
115115
if [ "$logged" != 'true' ] && grep -q "BEA-141335" ${SERVER_OUT_FILE} ; then
116-
trace "WebLogic server failed to start due to missing or invalid situational configuration files. Please check ${SERVER_OUT_FILE} for details"
116+
msg=("WebLogic server failed to start due to missing or invalid"
117+
"situational configuration files, which may be due to invalid"
118+
"configOverride templates (these are specified via the"
119+
"configOverride attribute in the Domain custom resource)."
120+
"For details, please search your pod log or"
121+
"${SERVER_OUT_FILE} for the keyword 'situational'."
122+
)
123+
trace "${msg[*]}"
117124
logged=true
118125
fi
119126
if [ -e /weblogic-operator/doShutdown ] ; then

0 commit comments

Comments
 (0)