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

Obulesu Bukkana picture Obulesu Bukkana · Nov 6, 2013 · Viewed 34.2k times · Source

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.

Answer

Obulesu Bukkana picture Obulesu Bukkana · Nov 6, 2013
 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.