Skip to content

Commit b362fc2

Browse files
rakillenrobertpatrick
authored andcommitted
Notify when only non-replicable custom archive path is used
1 parent 9d5621e commit b362fc2

File tree

5 files changed

+44
-30
lines changed

5 files changed

+44
-30
lines changed

Diff for: core/src/main/java/oracle/weblogic/deploy/util/WLSDeployArchive.java

+10-4
Original file line numberDiff line numberDiff line change
@@ -2499,16 +2499,22 @@ public void extractCustomFiles(File domainHome) throws WLSDeployArchiveIOExcepti
24992499

25002500
validateExistingDirectory(domainHome, "domainHome", getArchiveFileName(), METHOD);
25012501

2502-
if(containsPath(ARCHIVE_CUSTOM_TARGET_DIR)) {
2502+
boolean hasReplicable = containsPath(ARCHIVE_CUSTOM_TARGET_DIR);
2503+
if(hasReplicable) {
25032504
extractDirectoryFromZip(ARCHIVE_CUSTOM_TARGET_DIR, domainHome);
25042505
}
25052506

2506-
if(containsPath(NON_REPLICABLE_CUSTOM_TARGET_DIR)) {
2507-
// log that this location is deprecated, but don't use new location for extraction
2508-
LOGGER.deprecation("WLSDPLY-01463", NON_REPLICABLE_CUSTOM_TARGET_DIR, ARCHIVE_CUSTOM_TARGET_DIR);
2507+
boolean hasNonReplicable = containsPath(NON_REPLICABLE_CUSTOM_TARGET_DIR);
2508+
if(hasNonReplicable) {
25092509
extractDirectoryFromZip(NON_REPLICABLE_CUSTOM_TARGET_DIR, domainHome);
25102510
}
25112511

2512+
if(hasNonReplicable && !hasReplicable) {
2513+
// users of older WDT versions may not know about the replicable location.
2514+
// log a notification that this option is available.
2515+
LOGGER.notification("WLSDPLY-01463", NON_REPLICABLE_CUSTOM_TARGET_DIR, ARCHIVE_CUSTOM_TARGET_DIR);
2516+
}
2517+
25122518
LOGGER.exiting(CLASS, METHOD);
25132519
}
25142520

Diff for: core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

+1-2
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ WLSDPLY-01459=Failed to add RCU Wallet to archive because the archive file {0} a
248248
WLSDPLY-01460=Failed to get the database wallet names from archive file {0} because the archive contains an invalid database wallet entry at {1}
249249
WLSDPLY-01461=Failed to remove SAML2 initialization data file {0} from archive file {1} because the archive file did not contain {2}.
250250
WLSDPLY-01462=Failed to add SAML2 initialization data file {0} to archive file {1} because the archive file already contains this entry at {2}.
251-
WLSDPLY-01463=Custom files found in deprecated archive path {0}, should be changed to {1}. \
252-
This will allow them to propagate to remote managed servers.
251+
WLSDPLY-01463=Custom files were found in archive path {0}, move smaller files to {1} to allow automatic replication to managed servers.
253252
WLSDPLY-01464=Database wallet found in deprecated archive path {0}, should be changed to {1}. \
254253
The archive contents have been extracted and assigned to that path.
255254
WLSDPLY-01465=Failed to add WebLogic Remote Console Extension file {0} to archive file {1} because the archive file already contains this entry at {2}.

Diff for: documentation/4.0/content/concepts/archive.md

+9
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ This is the root directory where your custom files and directories can be stored
7979
files are not collected by the Discover Domain Tool. Every file resource under this directory is extracted during
8080
`createDomain`, `updateDomain`, and `deployApps`.
8181

82+
Some custom files may belong in `wlsdeploy/custom`. To determine which location is preferable for your files, see [Why are there two separate directory structures?]({{< relref "#why-are-there-two-separate-directory-structures" >}}).
83+
8284
This location is particularly useful when handling files that live outside an application; for example, a property
8385
file used to configure the application. The general steps to make applications that use such files work when
8486
provisioning them with WDT are:
@@ -130,6 +132,13 @@ wlsdeploy/applications/myApp/WEB-INF/weblogic.xml
130132
The root directory under which JARs/directories used for server classpaths are stored. Every file resource under this
131133
directory is extracted, even those not referenced in the model.
132134

135+
#### `wlsdeploy/custom`
136+
This is the root directory where your custom files and directories can be stored and extracted from the archive. These
137+
files are not collected by the Discover Domain Tool. Every file resource under this directory is extracted during
138+
`createDomain`, `updateDomain`, and `deployApps`.
139+
140+
Some custom files may belong in `config/wlsdeploy/custom`. To determine which location is preferable for your files, see [Why are there two separate directory structures?]({{< relref "#why-are-there-two-separate-directory-structures" >}}).
141+
133142
#### `wlsdeploy/domainBin`
134143
The root directory under which `$DOMAIN_HOME/bin` scripts are stored. Only scripts referenced in the
135144
`domainInfo/domainBin` section of the model are extracted, as shown in the example.

Diff for: documentation/4.0/content/userguide/tools-config/tool_prop.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ weight: 4
66
---
77

88

9-
You can configure or tune WebLogic Deploy Tooling tools using the tool property file. This property file is installed as `<weblogic-deploy>/lib/tool.properties`. You may change the value of any of the properties in this file to tune the WDT tool. Another option is to configure the tool properties in a Custom Configuration directory. Create the `tool.properties` file in the `$WDT_CUSTOM_CONFIG` directory.
9+
You can configure or tune WebLogic Deploy Tooling tools using the tool property file. This property file is installed as `<weblogic-deploy>/lib/tool.properties`. To tune the WDT tool, you may change the value of any of the properties in this file. Another option is to configure the tool properties in a [Custom Configuration]({{< relref "/userguide/tools-config/custom_config.md" >}}) directory. For this option, create the `tool.properties` file in the `$WDT_CUSTOM_CONFIG` directory.
1010

1111
If a property is removed from the file, or a property value is incorrectly formatted, a `WARNING` message is logged and an internal default value used instead of the missing or bad value.
1212

13-
| Property | Description |
14-
|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
15-
| `connect.timeout` | The number of milliseconds that WLST waits for the online `connect` command to complete. A value of 0 means the operation will not timeout. |
16-
| `activate.timeout` | The number of milliseconds that WLST waits for the activation of configuration changes to complete. A value of -1 means the operation will not timeout. |
17-
| `deploy.timeout` | The number of milliseconds that WLST waits for the undeployment process to complete. A value of 0 means the operation will not timeout. |
18-
| `redeploy.timeout` | The number of milliseconds that WLST waits for the redeployment process to complete. A value of 0 means the operation will not timeout. |
19-
| `undeploy.timeout` | The number of milliseconds that WLST waits for the undeployment process to complete. A value of 0 means the operation will not timeout. |
20-
| `start.application.timeout` | The number of milliseconds that WLST waits for the start application process to complete. A value of 0 means the operation will not timeout. |
21-
| `stop.application.timeout` | The number of milliseconds that WLST waits for the stop application process to complete. A value of 0 means the operation will not timeout. |
22-
| `set.server.groups.timeout` | Specifies the amount of time the set server groups connection can be inactive before the connection times out. |
23-
| `wlst.edit.lock.acquire.timeout` | Specifies the amount of time in milliseconds the WLST online `startEdit` command will wait trying to acquire the edit lock before it times out. |
24-
| `wlst.edit.lock.release.timeout` | Specifies the amount of time in milliseconds the WLST online `startEdit` command will wait for the edit lock to be released before releasing it automatically. |
25-
| `wlst.edit.lock.exclusive` | Specifies whether the edit lock acquired by `startEdit` should be exclusive or shared (default is `shared`). |
26-
| `yaml.max.file.size` | The maximum size of the YAML model file that the WDT SnakeYAML parser will allow. The default value of `0` uses the SnakeYAML default setting of `3145728` (i.e., 3 MB). |
27-
| `use.deprecation.exit.code` | Whether deprecation messages should cause WDT tools to exit with a non-zero exit code (default is `false`). |
28-
| `disable.rcu.drop.schema` | Whether the RCU drop step should be skipped when running Create Domain with the `-run_rco` switch (default is `false`). |
29-
| `enable.create.domain.password.validation` | Whether Create Domain should try to validate user passwords using the SystemPasswordValidator settings in the model (default is `true`). |
30-
| `archive.custom.folder.size.limit` | The size limit for the custom folder above which extracting the folder will generate a warning (default is `1048576`, which is 1 MB). |
31-
| `ssh.private.key.default.file.name` | The default file name of the SSH private key file (default is `id_rsa`). |
32-
| `use.ssh.compression` | Whether to use SSH compression for all SSH operations (default is `true`). |
33-
| `use.server.version.for.online.operation` | Whether to use the server's WebLogic Server version and patch level to initialize the aliases for WDT online operations (default is `true`). |
13+
| Property | Description |
14+
|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
15+
| `activate.timeout` | The number of milliseconds that WLST waits for the activation of configuration changes to complete. A value of -1 means the operation will not timeout. |
16+
| `archive.custom.folder.size.limit` | The size limit for the replicable custom files archive folder `config/wlsdeploy/custom` above which extracting the folder will generate a warning (default is `1048576`, which is 1 MB). |
17+
| `connect.timeout` | The number of milliseconds that WLST waits for the online `connect` command to complete. A value of zero (0) means the operation will not timeout. |
18+
| `deploy.timeout` | The number of milliseconds that WLST waits for the undeployment process to complete. A value of zero (0) means the operation will not timeout. |
19+
| `disable.rcu.drop.schema` | Whether the RCU drop step should be skipped when running Create Domain with the `-run_rco` switch (default is `false`). |
20+
| `enable.create.domain.password.validation` | Whether Create Domain should try to validate user passwords using the SystemPasswordValidator settings in the model (default is `true`). |
21+
| `redeploy.timeout` | The number of milliseconds that WLST waits for the redeployment process to complete. A value of zero (0) means the operation will not timeout. |
22+
| `set.server.groups.timeout` | Specifies the amount of time the set server groups connection can be inactive before the connection times out. |
23+
| `ssh.private.key.default.file.name` | The default file name of the SSH private key file (default is `id_rsa`). |
24+
| `start.application.timeout` | The number of milliseconds that WLST waits for the start application process to complete. A value of zero (0) means the operation will not timeout. |
25+
| `stop.application.timeout` | The number of milliseconds that WLST waits for the stop application process to complete. A value of zero (0) means the operation will not timeout. |
26+
| `undeploy.timeout` | The number of milliseconds that WLST waits for the undeployment process to complete. A value of zero (0) means the operation will not timeout. |
27+
| `use.deprecation.exit.code` | Whether deprecation messages should cause WDT tools to exit with a non-zero exit code (default is `false`). |
28+
| `use.server.version.for.online.operation` | Whether to use the server's WebLogic Server version and patch level to initialize the aliases for WDT online operations (default is `true`). |
29+
| `use.ssh.compression` | Whether to use SSH compression for all SSH operations (default is `true`). |
30+
| `wlst.edit.lock.acquire.timeout` | Specifies the amount of time in milliseconds the WLST online `startEdit` command will wait trying to acquire the edit lock before it times out. |
31+
| `wlst.edit.lock.exclusive` | Specifies whether the edit lock acquired by `startEdit` should be exclusive or shared (default is `shared`). |
32+
| `wlst.edit.lock.release.timeout` | Specifies the amount of time in milliseconds the WLST online `startEdit` command will wait for the edit lock to be released before releasing it automatically. |
33+
| `yaml.max.file.size` | The maximum size of the YAML model file that the WDT SnakeYAML parser will allow. The default value of zero (0) uses the SnakeYAML default setting of `3145728` (i.e., 3 MB). |
3434

3535
You can override the value of a single property using a Java System property with the name `wdt.config.<tool-property-name>`.
3636
For example, adding `-Dwdt.config.connect.timeout=5000` will set the effective `connect.timeout` property to 5000 milliseconds, regardless of what the value in the tool.properties file might be. To pass

Diff for: installer/src/main/lib/tool.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020, 2023, Oracle and/or its affiliates.
1+
# Copyright (c) 2020, 2024, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
44
connect.timeout=120000
@@ -60,4 +60,4 @@ use.ssh.compression=true
6060
#
6161
# The recommended limit for the size of the archive custom folder contents
6262
#
63-
archive.custom.folder.size.limit=1000000
63+
archive.custom.folder.size.limit=1048576

0 commit comments

Comments
 (0)