Professional Documents
Culture Documents
Background
This tutorial is part of the Oracle WebLogic Server 12c series, and
assumes that you have completed these tutorials, in this order:
1 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
/downloads/index.html.
Before You Begin
■ A properly configured WebLogic Server domain containing an
Background Administration Server and one Managed Server with the following
settings:
What Do You Need?
■ Domain directory: /u01/domains
Conventions
/ExampleDomain with Managed Server, server1
Deploy the Application ■ Administration Server listen address and port number:
localhost:7001
Generate and Edit a ■ Managed Server, server1, listen address and port
Deployment Plan
number: localhost:7003
Update the Application with ■ An example application which is available for download here. This
the Deployment Plan application archive contains three files:
■ hrapp.war, a simple web application in an archive
Next Steps file
■ deploy.py, a WebLogic Scripting Tool (WLST) script
to deploy the web application
■ deploy.sh, a shell script to deploy the web
application
Conventions
This tutorial uses the following conventions:
Variable Value
ORACLE_HOME Environment
/u01/app/fmw
Variable
DOMAIN_HOME Environment /u01/domains
Variable /ExampleDomain
APP_HOME Environment /tmp/downloads
Variable /DeployPlan
$ cd ${DOMAIN_HOME}/
$./startWebLogic.sh
2 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
Update the Application with 3. Deploy the web application HRApp located in the hrapp.war file.
the Deployment Plan
■ Open a new terminal window and navigate to the APP_HOME
directory.
Next Steps
■ In this tutorial, we use the deploy.sh script to deploy the
application. This script contains default values for the
Administration Server URL, the target server to which you deploy
the application, and the fully qualified path to your WebLogic
Server installation directory. To override any of these default
values, you must specify an appropriate parameter along with a
valid value in the command line while deploying the application.
$./deploy.sh
3 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
http://localhost:7001/console
Optionally, you can specify the host name and port of your
domain's Administration Server in place of localhost:7001.
5. On the Welcome screen, enter the user name and password that
4 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
you specified when you created the domain, and then click Login.
Before You Begin
6. In the left pane of the Console, under Domain Structure, select
Background Deployments. In the Deployments table, verify that HRApp is in
the Active State.
What Do You Need?
Conventions
1. Return to the same terminal window that you used to run the
deploy.sh script. Ensure that the current directory is
APP_HOME. Enter the command to run the PlanGenerator tool
on the hrapp.war file:
5 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
Background
Note: If you are using a new terminal window, then ensure that you
What Do You Need?
run the source setWLSEnv.sh command before running the
Conventions PlanGenerator tool. This command sets the PATH and the
CLASSPATH for executing any WLST script.
Deploy the Application
2. Now, let's edit the deployment plan that you generated. Open the
plan.xml file with a text editor and locate the <variable>
element in the file.
<variable>
<name>WeblogicWebApp_ContextRoots_1536264501
<value xsi:nil="true"></value>
</variable>
<variable>
<name>WeblogicWebApp_ContextRoots_1536264501
<value>/hr</value>
</variable>
<variable-assignment>
<name>WeblogicWebApp_ContextRoots_15362645
6 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
<xpath>/weblogic-web-app/context-root</xpa
Before You Begin
<origin>planbased</origin>
Background </variable-assignment>
What Do You Need?
7 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
Background
Conventions
8 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
Background
Conventions
http://hostname:7003/hr
Note that the previous context root /HRApp has changed to /hr.
9 of 10 12/12/2020 4:47 PM
Create and Use a Deployment Plan in Oracle WebLogic Server https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-serv...
Choices ight © 2019, Oracle and/or its affiliates. All rights reserved.
Update the Application with
the Deployment Plan
Next Steps
10 of 10 12/12/2020 4:47 PM