deploy (WebLogic)

Deploy an EAR or WAR file to Partition, Resource Group, Resource Group Template or WebLogic Cluster/Server. You must have built archive files as part of build workflow execution prior to running deploy.

The following properties are used to specify the location to deploy.

  1. FDWLS_SERVER_OR_CLUSTER_NAMES
  2. FDWLS_PARTITION, FDWLS_RESOURCE_GROUP
  3. FDWLS_RESOURCE_GROUP_TEMPLATE

If all values are specified, they are used in the order listed above.

Prior to WebLogic 12.2.1, only the FDWLS_SERVER_OR_CLUSTER_NAMES property was used. Read about the deployment options of 12.2.1 at https://blogs.oracle.com/WebLogicServer/entry/domain_partitions_for_multi_tenancy.

Property Replacement on Deploy

Let's say you want to override adf connections.xml file for specific environment instance deployment.

  1. Create a file called something like connections-overrides.xml and source control it along with your application. This file should be in same folder as connections.xml. In this file you can use properties where you need to replace environment instance or project specific values. Enter properties in the following notation: ${{PROPERTY_NAME}}. See Property Replacement Support.
  2. Define the required properties on your deploy workflow, and set the scope to either Environment Instance or Project as appropriate.
  3. Edit your deploy instance and associate your deploy workflow to it, if not already done.
  4. Your workflow properties will now appear on either the environment instances or projects depending on the scope, and you can provide values for them.
  5. In your deploy workflow, edit the deploy step and set the Override File Pattern (FDWLS_INP_OVERRIDE_FILE_PATTERN) property. The value is in format actual_file=override_file. For example, connection.xml=connections-overrides.xml.
  6. At deploy time, the WebLogic deploy step will run property replacement against the override file using the properties you have defined, and then replace the original file prior to deploying artifact to WebLogic domain.

This can be done for any other files as well. For example, you can override web.xml, weblogic.xml, weblogic-application.xml files similarly. Alternatively, you can create separate override files for each environment as well and define Override File Pattern as expression to control which override file is used based on current environment from workflow execution.

Blog Posts

Environment/Instance Properties

Property Name

Property Code

Required

Description

Oracle Weblogic Home (WL_HOME)

FDWLS_WEBLOGIC_HOME

Yes

WebLogic Home Directory. (e.g. /u01/oracle/products/fmw/wlserver)

Weblogic Domain Name

FDWLS_DOMAIN_NAME

Yes

WebLogic Domain Name.

Weblogic Admin Listen Address

FDWLS_ADMIN_LISTEN_ADDRESS

Yes

The listener address of the WLS admin server. (e.g. localhost)

Weblogic Admin Listen Port

FDWLS_ADMIN_LISTEN_PORT

Yes

The port of the WLS admin server. (e.g. 7001)

Weblogic Admin SSL Connection

FDWLS_ADMIN_USE_SSL

No

Indicates whether the admin server is using SSL.

Weblogic Admin User

FDWLS_ADMIN_USER

Yes

The user name for the WLS admin server.

Weblogic Admin Password

FDWLS_ADMIN_PASSWORD

Yes

The password for Weblogic Admin User.

Weblogic Application Install Directory

FDWLS_BASE_INSTALL_DIRECTORY

No

Base directory to install the WebLogic deployments from.

Files will be copied here on Admin Server endpoint by WebLogic plugin prior to installation.

For example: /oracle/middleware/product/user_projects/applications