Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Jan 28, 2015

Weblogic command-line deployment

Weblogic command-line deployment in Linux with Java

1. Set java to PATH
2. Go to $WLS_HOME/server/bin
3. perform ". setWLSEnv.sh" - to set weblogic jars to classpath.
4. perform "echo $CLASSPATH" to check whether jars are properly set to classpath.
5. java weblogic.Deployer -adminurl http://: -username -password -deploy -name -source -targets -securityModel -plan

eg: java weblogic.Deployer -adminurl http://192.168.0.2:7001 -username weblogic -password weblogic1 -deploy -name HelloWorld -source /opt/sureshba/HelloWorld.ear -targets AdminServer -securityModel CustomRoles -plan /opt/sureshba/plan/HelloWorld.xml

For more info: http://docs.oracle.com/cd/E13222_01/wls/docs90/deployment/wldeployer.html