Thursday, May 31, 2012

WebLogic deployer: EAR deploy script for weblogic server.

#!/bin/sh

git pull

ant clean ear

WL_PATH=<wl-server>/lib/weblogic.jar
WL_URL=http://localhost:7001/

java -cp $WL_PATH:$CLASSPATH weblogic.Deployer 
     -adminurl $WL_EVR 
     -username weblogic 
     -password weblogic 
     -name my_project 
     -deploy dist/my_project.ear
Before Running this script check if tunneling is no.

Environment->servers->[server-name]->Protocols
'Enable Tunneling' flag should be ON.

No comments: