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.
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.
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.
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.
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]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With