Databases Reference
In-Depth Information
To perform the same deployment of
myApp.ear
to the
PROD_Cluster
cluster,
do the following:
1. Go to the WebLogic domain's
bin
directory:
[wls@prod01]$ cd $DOMAIN_HOME/bin
2. Set the environment variables:
[wls@prod01]$ . ./setDomainEnv.sh
3. Run the
weblogic.Deployer
command line with the parameters:
[wls@prod01]$ java weblogic.Deployer -adminurl t3://prod01.domain.
local:7001 -username wlsadmin -password <pwd> -deploy -targets
PROD_Cluster /oracle/applications/prod/myApp/v1/app/myApp.ear
4. The following should be the output:
weblogic.Deployer invoked with options: -adminurl t3://prod01.
domain.local:7001 -username wlsadmin -deploy -targets PROD_Cluster
/oracle/applications/prod/myApp/v1/app/myApp.ear
<Info><J2EE Deployment SPI><BEA-260121><Initiating deploy
operation for application, myApp [archive: /oracle/applications/
prod/myApp/v1/app/myApp.ear], to PROD_Cluster .>
5. The
myApp
application should be deployed to the
PROD_Cluster
cluster.
Deploying applications using WLST
Now let's deploy the application through WLST using the following steps:
1. Log in as a
wls
user to shell and start WLST:
[wls@prod01]$ $WL_HOME/common/bin/wlst.sh
2. Connect to the Administration Server using
wlsadmin
as the user,
<pwd>
as the
password, and
t3://prod01.domain.local:7001
as the server URL:
wls:/offline>connect("wlsadmin","<pwd>","t3://prod01.domain.
local:7001")
3. Run the following WLST command to deploy the
myApp.ear
application to the
PROD_Cluster
cluster:
deploy("myApp", "/oracle/applications/prod/myApp/v1/app/myApp.
ear","PROD_Cluster")
Search WWH ::
Custom Search