#!/bin/sh # WARNING: This file is created by the Configuration Wizard. # Any changes to this script may be lost when adding extensions to this configuration. # ************************************************************************* # This script is used to stop WebLogic Server created by Config Wizard # Usage: stopWebLogic [username] [password] [server-name] [admin-url] # The default value of server-name is gnpserver # The default value of admin-url is t3://localhost:7001 # For additional information, refer to the WebLogic Server Administration # Console Online Help(http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html) # ************************************************************************* # set up WL_HOME, the root directory of your WebLogic installation WL_HOME="/bea/bea92/weblogic92" #if [ "$1" != "" ] ; then # UIDPWD="-username $1" # shift #fi #if [ "$1" != "" ] ; then # UIDPWD="${UIDPWD} -password $1" # shift #fi #if [ "true" = "true" ] ; then # if [ "${UIDPWD}" = "" ] ; then # echo "ERROR: Because your domain was created as a production mode domain. " # echo "You MUST include a username parameter that can be used to shutdown Weblogic Server" # read _val # exit # fi #fi #the number of parameter must be exactly 2 if [ $# -ne 2 ] ; then echo "The number of input parameter is : $#" echo "The number of input parameter must be exactly 2." echo "Usage: stopWebLogic.sh [server-name] [admin-url]" echo "Example: stopWebLogic.sh dbcfxserver1 t3://dbcfxesefe01.telecomitalia.local:7001" exit fi # set server name SERVER_NAME="" if [ "$1" != "" ] ; then SERVER_NAME="$1" else echo "Usage: stopWebLogic.cmd(sh) [server-name] [admin-url]" exit fi # set ADMIN_URL ADMIN_URL="" if [ "$2" != "" ] ; then ADMIN_URL="$2" else echo "Usage: stopWebLogic.cmd(sh) [server-name] [admin-url]" exit fi # Call commEnv here. . "${WL_HOME}/common/bin/commEnv.sh" #gnp settings begin THIS_PATH=`dirname $0` #gnp settings end echo "Stopping Weblogic Server..." ${JAVA_HOME}/bin/java \ -cp ${WEBLOGIC_CLASSPATH} \ -Dweblogic.security.TrustKeyStore=CustomTrust\ -Dweblogic.security.CustomTrustKeyStoreFileName=/gnpapp/cert/dbcfxCAkeystore\ -Dweblogic.security.SSL.ignoreHostnameVerification=true\ -Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" \ weblogic.Admin FORCESHUTDOWN \ -url ${ADMIN_URL} \ ${SERVER_NAME} echo "Done"