Saturday, November 22, 2014
On November 22, 2014 by Kamlesh 2 comments
How to Deploy Application using WLST
We can use WLST to quickly
deploy an Application in a Weblogic Server.
Requirement:-
Requirement:-
·The
ear/war/rar/jar file (uploaded to a directory in the target WebLogic Server )
·A simple
WLST script
·Credentials
for the Weblogic Server (preferably, the weblogic user).
·Write
a simple WLST Script to do your work and save it as "deploy.py"
print WEBLOGIC : START
print 'connecting to admin server....'
connect( 'weblogic', 'weblogic',
't3://localhost:7001', adminServerName='AdminServer' )
print 'stopping and undeploying ....'
stopApplication('application')
print 'deploying....'
deploy('shoppingcart', 'c:/application.war',
targets='AdminServer')
startApplication('application')
print 'disconnecting from admin server....'
disconnect()
exit()
print WEBLOGIC : STOP
·Open a
Terminal Window / Command Prompt
·Run
the setDomainEnv.sh/ setDomainEnv.bat script to set the required
environment variables under <weblogic domain>/bin.
·run :-
java weblogic.WLST deploy.py
output -
java weblogic.WLST
sc
ript.py
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration
Scripting Shell
Type help() for help on available commands
*** WEBLOGIC : START ***
connecting to admin server....
Connecting to t3://localhost:7001 with userid
weblogic ...
Successfully connected to Admin Server
'AdminServer' that belongs to domain 'bas
e_domain'.
Warning: An insecure protocol was used to
connect to the
server. To ensure on-the-wire security, the SSL
port or
Admin port should be used instead.
stopping and underplaying ....
Stopping application………….
Completed the stop of Application with status
completed
Current Status of your Deployment:
Deployment command type: stop
Deployment State : completed
Deployment Message : no message
Deploying....
Deploying application from D:\application.war to
targets AdminServer (upload=fa
lse) ...
Completed the deployment of Application with
status completed
Current Status of your Deployment:
Deployment command type: deploy
Deployment State : completed
Deployment Message : no message
Starting application……….
Completed the start of Application with status
completed
Current Status of your Deployment:
Deployment command type: start
Deployment State : completed
Deployment Message : no message
disconnecting from admin server....
Disconnected from weblogic server: AdminServer
Exiting WebLogic Scripting Tool.
Subscribe to:
Post Comments (Atom)
Search
AdSense
Recent Posts
Popular Posts
-
WLST Script for checking the health status of Weblogic Domain (Admin/Managed node) After long time writing something about WLST WLST...
-
WLST Script for checking the status of JDBC Datasource in Weblogic WLST has some good features like we can monitor the weblogic dom...
-
WLST Script for Monitoring the JMS status of Weblogic Domain After long time writing something about WLST WLST has some good feature...
-
WLST Server Start The server of a WebLogic domain can be started using different techniques. The best setup depends on the technical re...
-
How to Deploy Application using WLST We can use WLST to quickly deploy an Application in a Weblogic Server. Requirement:- · The ...
-
How to create WebLogic Domain using Domain template: 1. Open an existing domain template (assuming WebLogic Server is installed at c:...
-
Basic concepts of WLST. What is WLST? It is a scripting tool offered by Weblogic. Any way WLST is not only for a sense of control,...
-
Hi All, writing something about OPMN utility with oracle instance and Weblogic. WebLogic Server – Weblogic is J2EE application ...
-
Hadoop Distributed Filesystem (HDFS) Built to support high throughput, streaming reads and writes of extremely large files. NAS ...
-
Before diving into this implementation, I would suggest you to look at Spring Security Introduction first. Let's Start Most of the We...
Recent Posts
Sample Text
Blog Archive
Total Pageviews
Find Us On Facebook
Powered by Blogger.
This comment has been removed by the author.
ReplyDeleteExcellent post, it helped me to overcome an issue.
ReplyDeleteKeep up the good work.