You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-source/content/userguide/managing-domains/configoverrides/_index.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -336,7 +336,12 @@ spec:
336
336
---
337
337
### Debugging
338
338
339
-
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.
339
+
Incorrectly formatted override files may be accepted without warnings or errors and may 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.
340
+
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 ),
342
+
by default the WebLogic server will fail to boot if any situational configuration files are invalid,
343
+
or if it encounters an error while loading situational configuration files.
344
+
By setting the `FAIL_BOOT_ON_SITUATIONAL_CONFIG_ERROR` environment variable in the Kubernetes containers for the WebLogic Servers to `false`, you can start up the WebLogic Servers even with incorrectly formatted override files.
340
345
341
346
* Make sure you've followed each step in the [Step-by-step guide](#step-by-step-guide).
342
347
@@ -363,9 +368,17 @@ Incorrectly formatted override files may be accepted without warnings or errors
363
368
...
364
369
```
365
370
* Look in your `DOMAIN_HOME/optconfig` directory.
366
-
* This directory, or a subdirectory within this directory, should contain each of your custom situational configuration files.
367
-
* 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.
368
-
371
+
* This directory, or a subdirectory within this directory, should contain each of your custom situational configuration files.
372
+
* 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.
373
+
374
+
* If the Administration Server pod does start but fails to reach ready state or tries to restart:
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.
378
+
* For example:
379
+
* `<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>".`
380
+
* The warning message suggests a syntax error is found in the provided configuration override file for the testDS JDBC datasource.
381
+
369
382
* If you'd like to verify that the situational configuration is taking effect in the WebLogic MBean tree, then one way to do this is to compare the `server config` and `domain config` MBean tree values.
370
383
* The `domain config` value should reflect the original value in your domain home configuration.
371
384
* The `server config` value should reflect the overridden value.
0 commit comments