???紵 发表于 2017-2-15 11:20:59

Deploying an Application to Weblogic using WLST

  http://download.oracle.com/docs/cd/E12840_01/wls/docs103/config_scripting/reference.html#wp1024285
  http://www.tek-tips.com/viewthread.cfm?qid=1455558&page=2
  I am just posting this here as handy reference on how to deploy an application from the command line to BEA Weblogic 9.2 Server. Simply change my server names with yours:

Drop your EAR File Location: /bea/bea9/deployables

Deployment Instructions:

- Login on Weblogic Admin Server (admin1) with user weblogic
- Goto directory /bea/bea9/weblogic920/server/bin
  - source setWLSEnv.sh script
  - Run: java weblogic.WLST

wls:/offline> connect()
Please enter your username ["weblogic"] : adminid
Please enter your password ["weblogic"] : adminpassword

Please enter the url ["t3://localhost:7001"] : t3://stewlm90:10001 -- This should be your admin port

Connecting to weblogic server instance running at t3://stewlm90:10001 as username admin ...

Successfully connected to Admin Server 'stewlm90' that belongs to domain 'wlsdomain'.

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.

wls:/wlsdomain/serverConfig> redeploy('myApp')

wls:/wlsdomain/serverConfig> disconnect()




  Questions or comments? Feel free to post them here. No login or id required.
页: [1]
查看完整版本: Deploying an Application to Weblogic using WLST