Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to deploy war/ear file from command line in weblogic

Tags:

war

weblogic

I want to deploy war/ear file from command line using wslt command into weblogic server. Will any one help on this issue. I need command to do this issue.

like image 280
Obulesu Bukkana Avatar asked Nov 06 '13 05:11

Obulesu Bukkana


People also ask

Can we deploy WAR file in WebLogic?

war file is deployed into BEA WebLogic Server. The BEA WebLogic Server documentation is the only trustable source of information for deploying WAR files. Use http:// hostname : port /dscc7 to connect to DSCC. The default port number for BEA WebLogic Server is 7001.

How do I start deployment in WebLogic?

Start WebLogic server and the WebLogic Server Console. In the left pane of WebLogic Server Console, expand your-domain > Deployments > Connectors. Click Connectors to display the Resource Connectors page. Click Configure a new Connector Component and follow the steps on the page.


2 Answers

 set CLASSPATH=D:\Weblogic\Middleware\wlserver_10.3\server\lib\weblogic.jar

//From remote

 java weblogic.Deployer -adminurl t3://localhost:8001 -user weblogic -password password123 -deploy C:\Users\User\Documents\sample\dist\sample.war -remote -upload

//From normal

 java weblogic.Deployer -adminurl t3://localhost:8001 -username weblogic -password password123 -deploy -name warfilename -targets AdminServer -source C:\apps\sample.war 

by using above stuff it is resolved.

like image 163
Obulesu Bukkana Avatar answered Oct 17 '22 08:10

Obulesu Bukkana


Just wanted to add for deploying artifacts as shared-library you can use the following:

java weblogic.Deployer -adminurl t3://localhost:7001 -username [Your username] -password [Your password] -upload -library -targets AdminServer -deploy -source [path to your war file]
like image 44
STaefi Avatar answered Oct 17 '22 10:10

STaefi