Share script about ocsg & weblogic

111setConnEnv.sh :
#!/bin/bash
# Set the general domain environment.
. ~/ocsgCourse/domains/labDomain/bin/setDomainEnv.sh
# The setDomainEnv script changes the working directory.
# Use popd to jump back to where we were.
popd
# Set general environment variables to be used in all WLST scripts.
USERNAME="weblogic"
export USERNAME
PASSWORD="p4ssw0rd"
export PASSWORD
HOSTNAME="localhost"
export HOSTNAME
PORT="8001"
export PORT
222start_lab_pte.sh :
#!/bin/sh
. /opt/ocsg500/wlserver_10.3/common/bin/commEnv.sh
/opt/ocsg500/ocsg_pds_5.0/pte/run.sh
333startWebLogic.sh :
#!/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.
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
${DOMAIN_HOME}/bin/startWebLogic.sh $*
444setDomainEnv.sh :
#!/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.
# --- Start Functions ---
BP=100
SP=$BP
pushd()
     if [ -z "$1" ]
     then
          return
     fi
     SP=`expr $SP - 1`
     eval _stack$SP=`pwd`
     cd $1
     return
popd()
     if [ $SP -eq $BP ]
     then
          return
     fi
     eval cd \${_stack$SP}
     SP=`expr $SP + 1`
     return
# --- End Functions ---
# This script is used to setup the needed environment to be able to start Weblogic Server in this domain.
# This script initializes the following variables before calling commEnv to set other variables:
# WL_HOME - The BEA home directory of your WebLogic installation.
# JAVA_VM - The desired Java VM to use. You can set this environment variable before calling
# this script to switch between Sun or BEA or just have the default be set.
# JAVA_HOME - Location of the version of Java used to start WebLogic
# Server. Depends directly on which JAVA_VM value is set by default or by the environment.
# USER_MEM_ARGS - The variable to override the standard memory arguments
# passed to java.
# PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
# DOMAIN_PRODUCTION_MODE
# - The variable that determines whether the workshop related settings like the debugger,
# testconsole or iterativedev should be enabled. ONLY settable using the
# command-line parameter named production
# NOTE: Specifying the production command-line param will force
# the server to start in production mode.
# Other variables used in this script include:
# SERVER_NAME - Name of the weblogic server.
# JAVA_OPTIONS - Java command-line options for running the server. (These
# will be tagged on to the end of the JAVA_VM and
# MEM_ARGS)
# For additional information, refer to the WebLogic Server Administration
# Console Online Help(http://e-docs.bea.com/wls/docs92/ConsoleHelp/startstop.html).
WL_HOME="/opt/ocsg50/wlserver_10.3"
export WL_HOME
BEA_JAVA_HOME="/opt/ocsg50/jrockit_160_17_R28.0.0-677"
export BEA_JAVA_HOME
SUN_JAVA_HOME="/opt/ocsg50/jdk160_18"
export SUN_JAVA_HOME
WLNG_HOME="/opt/ocsg50/ocsg_5.0"
export WLNG_HOME
if [ "${JAVA_VENDOR}" = "BEA" ] ; then
     JAVA_HOME="${BEA_JAVA_HOME}"
     export JAVA_HOME
else
     if [ "${JAVA_VENDOR}" = "Sun" ] ; then
          JAVA_HOME="${SUN_JAVA_HOME}"
          export JAVA_HOME
     else
JAVA_VENDOR="Oracle"
          export JAVA_VENDOR
JAVA_HOME="/opt/ocsg50/jrockit_160_17_R28.0.0-677"
          export JAVA_HOME
     fi
fi
# We need to reset the value of JAVA_HOME to get it shortened AND
# we can not shorten it above because immediate variable expansion will blank it
JAVA_HOME="${JAVA_HOME}"
export JAVA_HOME
SAMPLES_HOME="${WL_HOME}/samples"
export SAMPLES_HOME
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
export DOMAIN_HOME
LONG_DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
export LONG_DOMAIN_HOME
if [ "${DEBUG_PORT}" = "" ] ; then
     DEBUG_PORT="8453"
     export DEBUG_PORT
fi
if [ "${SERVER_NAME}" = "" ] ; then
SERVER_NAME="AdminServer"
     export SERVER_NAME
fi
# Disable WLS WebService exception trace
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.wsee.component.exception=false"
# Optional ORB configuration
#JAVA_OPTIONS="${JAVA_OPTIONS} -Dwlng.corba.host=localhost"
#JAVA_OPTIONS="${JAVA_OPTIONS} -Dwlng.corba.port=10001"
#JAVA_OPTIONS="${JAVA_OPTIONS} -Dwlng.corba.thread_pool_size=100"
#JAVA_OPTIONS="${JAVA_OPTIONS} -Dwlng.corba.request_timeout=10000"
#JAVA_OPTIONS="${JAVA_OPTIONS} -Dwlng.corba.connect_timeout=3000"
JAVA_OPTIONS="${JAVA_OPTIONS} -Docsg.dir.name=ocsg_5.0"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dpds.dir.name=ocsg_pds_5.0"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dmodules.dir.name=modules"
export JAVA_OPTIONS
POINTBASE_FLAG="false"
export POINTBASE_FLAG
enableHotswapFlag=""
export enableHotswapFlag
PRODUCTION_MODE=""
export PRODUCTION_MODE
doExitFlag="false"
export doExitFlag
verboseLoggingFlag="false"
export verboseLoggingFlag
while [ $# -gt 0 ]
do
     case $1 in
     nodebug)
          debugFlag="false"
          export debugFlag
     production)
          DOMAIN_PRODUCTION_MODE="true"
          export DOMAIN_PRODUCTION_MODE
     notestconsole)
          testConsoleFlag="false"
          export testConsoleFlag
     noiterativedev)
          iterativeDevFlag="false"
          export iterativeDevFlag
     noLogErrorsToConsole)
          logErrorsToConsoleFlag="false"
          export logErrorsToConsoleFlag
     nopointbase)
          POINTBASE_FLAG="false"
          export POINTBASE_FLAG
     doExit)
          doExitFlag="true"
          export doExitFlag
     noExit)
          doExitFlag="false"          export doExitFlag
     verbose)
          verboseLoggingFlag="true"
          export verboseLoggingFlag
     enableHotswap)
          enableHotswapFlag="-javaagent:${WL_HOME}/server/lib/diagnostics-agent.jar"
          export enableHotswapFlag
          PROXY_SETTINGS="${PROXY_SETTINGS} $1"
          export PROXY_SETTINGS
     esac
     shift
done
if [ "${DOMAIN_PRODUCTION_MODE}" = "true" ] ; then
     PRODUCTION_MODE="${DOMAIN_PRODUCTION_MODE}"
     export PRODUCTION_MODE
fi
if [ "${PRODUCTION_MODE}" = "true" ] ; then
     debugFlag="false"
     export debugFlag
     testConsoleFlag="false"
     export testConsoleFlag
     iterativeDevFlag="false"
     export iterativeDevFlag
fi
# If you want to override the default Patch Classpath, Library Path and Path for this domain,
# Please uncomment the following lines and add a valid value for the environment variables
# set PATCH_CLASSPATH=[myPatchClasspath] (windows)
# set PATCH_LIBPATH=[myPatchLibpath] (windows)
# set PATCH_PATH=[myPatchPath] (windows)
# PATCH_CLASSPATH=[myPatchClasspath] (unix)
# PATCH_LIBPATH=[myPatchLibpath] (unix)
# PATCH_PATH=[myPatchPath] (unix)
. ${WL_HOME}/common/bin/commEnv.sh
#Add WLNG store schema directory to WLS extension directories
WEBLOGIC_EXTENSION_DIRS=${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${DOMAIN_HOME}/config/store_schema
WLS_HOME="${WL_HOME}/server"
export WLS_HOME
WLI_HOME="${WL_HOME}/integration"
export WLI_HOME
MEM_ARGS="-Xms256m -Xmx512m"
if [ "${PRODUCTION_MODE}" = "true" ] ; then
MEM_ARGS="-Xms512m -Xmx512m"
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
MEM_ARGS="${MEM_ARGS} -Xmn256m -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90"
fi
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
MEM_ARGS="${MEM_ARGS} -XX:CompileThreshold=8000 -XX:PermSize=256m"
fi
fi
export MEM_ARGS
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
     MEM_ARGS="${MEM_ARGS} -XX:MaxPermSize=256m"
     export MEM_ARGS
fi
if [ "${JAVA_VENDOR}" = "HP" ] ; then
     MEM_ARGS="${MEM_ARGS} -XX:MaxPermSize=128m"
     export MEM_ARGS
fi
# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
if [ "${USER_MEM_ARGS}" != "" ] ; then
     MEM_ARGS="${USER_MEM_ARGS}"
     export MEM_ARGS
fi
JAVA_PROPERTIES="-Dplatform.home=${WL_HOME} -Dwls.home=${WLS_HOME} -Dwli.home=${WLI_HOME}"
export JAVA_PROPERTIES
# To use Java Authorization Contract for Containers (JACC) in this domain,
# please uncomment the following section. If there are multiple machines in
# your domain, be sure to edit the setDomainEnv in the associated domain on
# each machine.
# -Djava.security.manager
# -Djava.security.policy=location of weblogic.policy
# -Djavax.security.jacc.policy.provider=weblogic.security.jacc.simpleprovider.SimpleJACCPolicy
# -Djavax.security.jacc.PolicyConfigurationFactory.provider=weblogic.security.jacc.simpleprovider.PolicyConfigurationFactoryImpl
# -Dweblogic.security.jacc.RoleMapperFactory.provider=weblogic.security.jacc.simpleprovider.RoleMapperFactoryImpl
JAVA_PROPERTIES="${JAVA_PROPERTIES} ${EXTRA_JAVA_PROPERTIES}"
export JAVA_PROPERTIES
ARDIR="${WL_HOME}/server/lib"
export ARDIR
pushd ${LONG_DOMAIN_HOME}
# Clustering support (edit for your cluster!)
if [ "${ADMIN_URL}" = "" ] ; then
     # The then part of this block is telling us we are either starting an admin server OR we are non-clustered
     CLUSTER_PROPERTIES="-Dweblogic.management.discover=true"
     export CLUSTER_PROPERTIES
else
     CLUSTER_PROPERTIES="-Dweblogic.management.discover=false -Dweblogic.management.server=${ADMIN_URL}"
     export CLUSTER_PROPERTIES
fi
if [ "${LOG4J_CONFIG_FILE}" != "" ] ; then
     JAVA_PROPERTIES="${JAVA_PROPERTIES} -Dlog4j.configuration=file:${LOG4J_CONFIG_FILE}"
     export JAVA_PROPERTIES
fi
JAVA_PROPERTIES="${JAVA_PROPERTIES} ${CLUSTER_PROPERTIES}"
export JAVA_PROPERTIES
# Clear the pre_classpath here in case an application template wants to set it before the larger pre_classpath is invoked below
PRE_CLASSPATH=""
export PRE_CLASSPATH
JAVA_DEBUG=""
export JAVA_DEBUG
if [ "${debugFlag}" = "true" ] ; then
     JAVA_DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=${DEBUG_PORT},server=y,suspend=n -Djava.compiler=NONE"
     export JAVA_DEBUG
     JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole..."
     export JAVA_OPTIONS
else
     JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -da"
     export JAVA_OPTIONS
fi
if [ ! -d ${JAVA_HOME}/lib ] ; then
     echo "The JRE was not found in directory ${JAVA_HOME}. (JAVA_HOME)"
     echo "Please edit your environment and set the JAVA_HOME"
     echo "variable to point to the root directory of your Java installation."
     popd
     read _val
     exit
fi
if [ "${POINTBASE_FLAG}" = "true" ] ; then
     DATABASE_CLASSPATH="${POINTBASE_CLASSPATH}"
     export DATABASE_CLASSPATH
else
     DATABASE_CLASSPATH="${POINTBASE_CLIENT_CLASSPATH}"
     export DATABASE_CLASSPATH
fi
POST_CLASSPATH=""
export POST_CLASSPATH
POST_CLASSPATH="${POST_CLASSPATH}${CLASSPATHSEP}${DATABASE_CLASSPATH}${CLASSPATHSEP}${ARDIR}/xqrl.jar"
export POST_CLASSPATH
# PROFILING SUPPORT
JAVA_PROFILE=""
export JAVA_PROFILE
SERVER_CLASS="weblogic.Server"
export SERVER_CLASS
JAVA_PROPERTIES="${JAVA_PROPERTIES} ${WLP_JAVA_PROPERTIES}"
export JAVA_PROPERTIES
JAVA_OPTIONS="${JAVA_OPTIONS} ${JAVA_PROPERTIES} -Dwlw.iterativeDev=${iterativeDevFlag} -Dwlw.testConsole=${testConsoleFlag} -Dwlw.logErrorsToConsole=${logErrorsToConsoleFlag}"
export JAVA_OPTIONS
# -- Setup properties so that we can save stdout and stderr to files
if [ "${WLS_STDOUT_LOG}" != "" ] ; then
     echo "Logging WLS stdout to ${WLS_STDOUT_LOG}"
     JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.Stdout=${WLS_STDOUT_LOG}"
     export JAVA_OPTIONS
fi
if [ "${WLS_STDERR_LOG}" != "" ] ; then
     echo "Logging WLS stderr to ${WLS_STDERR_LOG}"
     JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.Stderr=${WLS_STDERR_LOG}"
     export JAVA_OPTIONS
fi
# ADD EXTENSIONS TO CLASSPATHS
if [ "${EXT_PRE_CLASSPATH}" != "" ] ; then
     PRE_CLASSPATH="${EXT_PRE_CLASSPATH}${CLASSPATHSEP}${PRE_CLASSPATH}"
     export PRE_CLASSPATH
fi
if [ "${EXT_POST_CLASSPATH}" != "" ] ; then
     POST_CLASSPATH="${POST_CLASSPATH}${CLASSPATHSEP}${EXT_POST_CLASSPATH}"
     export POST_CLASSPATH
fi
if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
     JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ext.dirs=${WEBLOGIC_EXTENSION_DIRS}"
     export JAVA_OPTIONS
fi
WLNG_CLASSPATH="${WLNG_HOME}/server/lib/wlng"
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.endorsed.dirs=${WLNG_CLASSPATH}/endorsed"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dwlss.replication=colocated -Dwlss.allow.warm.restart=true"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dreplica.client.init.retry=5000"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dreplica.client.timer.poll.allowance=30000"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dreplica.client.timer.checkup.timeout=30000"
JAVA_OPTIONS="${JAVA_OPTIONS}"
export JAVA_OPTIONS
# SET THE CLASSPATH
CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${POST_CLASSPATH}${CLASSPATHSEP}${WLP_POST_CLASSPATH}"
export CLASSPATH
JAVA_VM="${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}"
export JAVA_VM
555startManagedWeblogic.sh :
#!/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.
# --- Start Functions ---
usage()
     echo "Need to set SERVER_NAME and ADMIN_URL environment variables or specify"
     echo "them in command line:"
     echo "Usage: $1 SERVER_NAME {ADMIN_URL}"
     echo "for example:"
     echo "%1 managedserver1 http://localhost:7001"
# --- End Functions ---
# This script is used to start a managed WebLogic Server for the domain in
# the current working directory. This script can either read in the SERVER_NAME and
# ADMIN_URL as positional parameters or will read them from environment variables that are
# set before calling this script. If SERVER_NAME is not sent as a parameter or exists with a value
# as an environment variable the script will EXIT. If the ADMIN_URL value cannot be determined
# by reading a parameter or from the environment a default value will be used.
# For additional information, refer to the WebLogic Server Administration
# Guide (http://e-docs.bea.com/wls/docs92/adminguide)
# Set SERVER_NAME to the name of the server you wish to start up.
DOMAIN_NAME="labDomain"
ADMIN_URL="http://localhost:8001"
# Set WLS_USER equal to your system username and WLS_PW equal
# to your system password for no username and password prompt
# during server startup. Both are required to bypass the startup
# prompt.
WLS_USER=""
export WLS_USER
WLS_PW=""
export WLS_PW
# Set JAVA_OPTIONS to the java flags you want to pass to the vm. i.e.:
# set JAVA_OPTIONS=-Dweblogic.attribute=value -Djava.attribute=value
JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore="/opt/ocsg50/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}"
# Set JAVA_VM to the java virtual machine you want to run. For instance:
# set JAVA_VM=-server
JAVA_VM=""
# Set SERVER_NAME and ADMIN_URL, they must by specified before starting
# a managed server, detailed information can be found at
# http://e-docs.bea.com/wls/docs92/adminguide
if [ "$1" = "" ] ; then
     if [ "${SERVER_NAME}" = "" ] ; then
          usage %0
          exit
     fi
else
     SERVER_NAME="$1"
     shift
fi
if [ "$1" = "" ] ; then
     if [ "${ADMIN_URL}" = "" ] ; then
          usage %0
          exit
     fi
else
     ADMIN_URL="$1"
     shift
fi
# Export the admin_url whether the user specified it OR it was sent on the command-line
ADMIN_URL="${ADMIN_URL}"
export ADMIN_URL
SERVER_NAME="${SERVER_NAME}"
export SERVER_NAME
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
if [ "$1" = "" ] ; then
     # Call Weblogic Server with our default params since the user did not specify any other ones
     ${DOMAIN_HOME}/bin/startWebLogic.sh nodebug nopointbase noiterativedev notestconsole
else
     # Call Weblogic Server with the params the user sent in INSTEAD of the defaults
     ${DOMAIN_HOME}/bin/startWebLogic.sh $1 $2 $3 $4 $5 $6 $7 $8 $9
fi
666startPointBaseConsole :
#!/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.
# Call setDomainEnv here to get the correct pointbase port
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
. ${DOMAIN_HOME}/bin/setDomainEnv.sh
${WL_HOME}/common/bin/startPointBaseConsole.sh -port=${POINTBASE_PORT}
777startWebLogic.sh :
#!/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.
# --- Start Functions ---
stopAll()
     # We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
     if [ "X${ALREADY_STOPPED}" != "X" ] ; then
          exit
     fi
     # STOP POINTBASE (only if we started it)
     if [ "${POINTBASE_FLAG}" = "true" ] ; then
          echo "Stopping PointBase server..."
          ${WL_HOME}/common/bin/stopPointBase.sh -port=${POINTBASE_PORT} -name=${POINTBASE_DBNAME} >"${DOMAIN_HOME}/pointbaseShutdown.log" 2>&1
          echo "PointBase server stopped."
     fi
     ALREADY_STOPPED="true"
     # Restore IP configuration the node manager starts IP Migration
     if [ "${SERVER_IP}" != "" ] ; then
          ${WL_HOME}/common/bin/wlsifconfig.sh -removeif "${IFNAME}" "${SERVER_IP}"
     fi
# --- End Functions ---
# This script is used to start WebLogic Server for this domain.
# To create your own start script for your domain, you can initialize the
# environment by calling @USERDOMAINHOME/setDomainEnv.
# setDomainEnv initializes or calls commEnv to initialize the following variables:
# BEA_HOME - The BEA home directory of your WebLogic installation.
# JAVA_HOME - Location of the version of Java used to start WebLogic
# Server.
# JAVA_VENDOR - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
# PATH - JDK and WebLogic directories are added to system path.
# WEBLOGIC_CLASSPATH
# - Classpath needed to start WebLogic Server.
# PATCH_CLASSPATH - Classpath used for patches
# PATCH_LIBPATH - Library path used for patches
# PATCH_PATH - Path used for patches
# WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
# JAVA_VM - The java arg specifying the VM to run. (i.e.
# - server, -hotspot, etc.)
# USER_MEM_ARGS - The variable to override the standard memory arguments
# passed to java.
# PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
# POINTBASE_HOME - Point Base home directory.
# POINTBASE_CLASSPATH
# - Classpath needed to start PointBase.
# Other variables used in this script include:
# SERVER_NAME - Name of the weblogic server.
# JAVA_OPTIONS - Java command-line options for running the server. (These
# will be tagged on to the end of the JAVA_VM and
# MEM_ARGS)
# For additional information, refer to the WebLogic Server Administration
# Console Online Help(http://e-docs.bea.com/wls/docs92/ConsoleHelp/startstop.html).
# Call setDomainEnv here.
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
. ${DOMAIN_HOME}/bin/setDomainEnv.sh $*
SAVE_JAVA_OPTIONS="${JAVA_OPTIONS}"
SAVE_CLASSPATH="${CLASSPATH}"
# Start PointBase
PB_DEBUG_LEVEL="0"
if [ "${POINTBASE_FLAG}" = "true" ] ; then
     ${WL_HOME}/common/bin/startPointBase.sh -port=${POINTBASE_PORT} -debug=${PB_DEBUG_LEVEL} -console=false -background=true -ini=${DOMAIN_HOME}/pointbase.ini >"${DOMAIN_HOME}/pointbase.log" 2>&1
fi
JAVA_OPTIONS="${SAVE_JAVA_OPTIONS}"
SAVE_JAVA_OPTIONS=""
CLASSPATH="${SAVE_CLASSPATH}"
SAVE_CLASSPATH=""
trap 'stopAll' 1 2 3 15
if [ "${PRODUCTION_MODE}" = "true" ] ; then
     WLS_DISPLAY_MODE="Production"
else
     WLS_DISPLAY_MODE="Development"
fi
if [ "${WLS_USER}" != "" ] ; then
     JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.username=${WLS_USER}"
fi
if [ "${WLS_PW}" != "" ] ; then
     JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.password=${WLS_PW}"
fi
CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${MEDREC_WEBLOGIC_CLASSPATH}"
echo "."
echo "."
echo "JAVA Memory arguments: ${MEM_ARGS}"
echo "."
echo "WLS Start Mode=${WLS_DISPLAY_MODE}"
echo "."
echo "CLASSPATH=${CLASSPATH}"
echo "."
echo "PATH=${PATH}"
echo "."
echo "***************************************************"
echo "* To start WebLogic Server, use a username and *"
echo "* password assigned to an admin-level user. For *"
echo "* server administration, use the WebLogic Server *"
echo "* console at http://hostname:port/console *"
echo "***************************************************"
# Set up IP Migration related variables.
# Set interface name.
if [ "${Interface}" != "" ] ; then
     IFNAME="${Interface}"
else
     IFNAME=""
fi
# Set IP Mask.
if [ "${NetMask}" != "" ] ; then
     IPMASK="${NetMask}"
else
     IPMASK=""
fi
# Perform IP Migration if SERVER_IP is set by node manager.
if [ "${SERVER_IP}" != "" ] ; then
     ${WL_HOME}/common/bin/wlsifconfig.sh -addif "${IFNAME}" "${SERVER_IP}" "${IPMASK}"
fi
# START WEBLOGIC
echo "starting weblogic with Java version:"
${JAVA_HOME}/bin/java ${JAVA_VM} -version
if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
     echo "Starting WLS with line:"
     echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}"
     ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}
else
     echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
     ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS} >"${WLS_REDIRECT_LOG}" 2>&1
fi
stopAll
popd
# Exit this script only if we have been told to exit.
if [ "${doExitFlag}" = "true" ] ; then
     exit
fi
888stopManagedWeblogic.sh :
#!/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.
# --- Start Functions ---
usage()
     echo "You must have a value for SERVER_NAME either set as an environment variable or the first parameter on the command-line."
     echo "ADMIN_URL defaults to t3://localhost:7001 if not set as an environment variable or the second command-line parameter."
     echo "USER_NAME and PASSWORD are required for shutting the server down when running in production mode:"
     echo "Usage: $1 {SERVER_NAME} {ADMIN_URL} {USER_NAME} {PASSWORD}"
     echo "for example:"
     echo "%1 managedserver1 t3://localhost:7001 weblogic weblogic"
# --- End Functions ---
# This script is used to stop a managed WebLogic Server for the domain in
# the current working directory. This script reads in the SERVER_NAME and
# ADMIN_URL as positional parameters, sets the SERVER_NAME variable, then
# calls the startWLS.cmd script under ${WL_HOME}/server/bin.
# Other variables that startWLS takes are:
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# JAVA_OPTIONS - Java command-line options for running the server. (These
# will be tagged on to the end of the JAVA_VM)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# For additional information, refer to the WebLogic Server Administration
# Guide (http://e-docs.bea.com/wls/docs92/adminguide)
# Set SERVER_NAME and ADMIN_URL, they must by specified before starting
# a managed server, detailed information can be found at
# http://e-docs.bea.com/wls/docs92/adminguide
if [ "$1" = "" ] ; then
     if [ "${SERVER_NAME}" = "" ] ; then
          usage %0
          exit
     fi
else
     SERVER_NAME="$1"
     export SERVER_NAME
     shift
fi
if [ "$1" = "" ] ; then
     if [ "${ADMIN_URL}" = "" ] ; then
ADMIN_URL="t3://localhost:8001"
          export ADMIN_URL
     fi
else
     ADMIN_URL="$1"
     export ADMIN_URL
     shift
fi
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
${DOMAIN_HOME}/bin/stopWebLogic.sh $1 $2
999stopWebLogic.sh :
#!/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.
if [ "$1" != "" ] ; then
     userID="username='$1',"
     shift
else
     if [ "${userID}" != "" ] ; then
          userID="username='${userID}',"
     fi
fi
if [ "$1" != "" ] ; then
     password="password='$1',"
     shift
else
     if [ "${password}" != "" ] ; then
          password="password='${password}',"
     fi
fi
# set ADMIN_URL
if [ "$1" != "" ] ; then
     ADMIN_URL="$1"
     shift
else
     if [ "${ADMIN_URL}" = "" ] ; then
ADMIN_URL="t3://localhost:8001"
     fi
fi
# Call setDomainEnv here because we want to have shifted out the environment vars above
DOMAIN_HOME="/home/oracle/ocsgCourse/domains/labDomain"
. ${DOMAIN_HOME}/bin/setDomainEnv.sh
echo "connect(${userID} ${password} url='${ADMIN_URL}',adminServerName='${SERVER_NAME}')" >"shutdown.py"
echo "shutdown('${SERVER_NAME}','Server')" >>"shutdown.py"
echo "exit()" >>"shutdown.py"
echo "Stopping Weblogic Server..."
${JAVA_HOME}/bin/java ${JAVA_OPTIONS} weblogic.WLST shutdown.py 2>&1
echo "Done"
exit

This forum is about iAS. For weblogic go to: WebLogic Server - General

Similar Messages

  • Reg: How to Run a Script File in WebLogic Server 10.3.3

    Hi WebLogic Experts,
    In our project we are using WebLogic Serve 10.3.3. I need to run one script file. could you please suggest me where should i need to place that script file in WebLogic Server 10.3.3 and How to run & stop that Script file.?
    please experts i waiting for your's reply..
    Thanks & Regards,
    Induja..

    1. You can put a command line into startWebLogic.sh to start your script file.
    2. In your proyect you can create a java class to run the script file.
    3. You can create a java class to run the script file an setup it like a startup class into weblogic server.
    4. You can create a java class to run the script file an setup it like a job scheduler into weblogic server.
    In what time you need run this script file?

  • How to share session beween 2 weblogic instance (451)

    Hi,
              I'm looking for the possibility to share session information between two
              weblogic instance (for weblogic 4.5.1).
              The first instance create and add information inside the session and store
              the session inside jndi for example.
              The second instance lookup the jndi to find all session informations and
              continue to work with this informations.
              If somebody have already do it, I'm intersted about tips and informations to
              do this fonctionnality.
              Thanks
              

    If the two server instances are in the same cluster, they automatically
              share session info!
              Gene Chuang
              Join Kiko.com!
              "Didier" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              > I'm looking for the possibility to share session information between two
              > weblogic instance (for weblogic 4.5.1).
              >
              > The first instance create and add information inside the session and store
              > the session inside jndi for example.
              > The second instance lookup the jndi to find all session informations and
              > continue to work with this informations.
              >
              > If somebody have already do it, I'm intersted about tips and informations
              to
              > do this fonctionnality.
              >
              > Thanks
              >
              >
              

  • Error in shutdown script for bea weblogic

    We have this error in the shutdown script of our bea weblogic:
    ./stopWebLogic.sh[33]: -Xms256m: not found.
    using the Oracle OCI database driver
    Shutdown initiated
    The shutdown sequence has been initiated.the script is as follows:
    echo "using the Oracle OCI database driver"
    export ORACLE_HOME=/opt/oracle/product/8.1.7
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export ORACLE_CLIENT_VERSION=817
    export ORACLE_API_VERSION=8
    PATH=$PATH:$ORACLE_HOME/bin
    SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
    _HOME/lib
    PATH=$JDK_HOME/bin:$PATH
    export PATH
    # Set application specific variables
    DOMAIN_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    #!/bin/sh
    # Weblogic start script for egovernment
    # Based on Colin Brick's initial version
    # Modified 02/04/03 - Colin Brick
    #       - included settings for Oblix from using SSO Assembly Test as example
    # Set General environment variables (Should normally not be changed)
    #Java settings
    JDK_HOME=/opt/bea/jdk131/
    export JDK_HOME
    JAVACMD=java
    JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
    ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""
    export JAVA_OPTIONS
    WEBLOGIC_PORT=51080
    #Bea settings
    BEA_HOME=/opt/bea
    export BEA_HOME
    WEBLOGIC_HOME=/opt/bea/wlserver6.1
    export WEBLOGIC_HOME
    BEA_SECURITY_POLICY=/opt/bea/wlserver6.1/lib/weblogic.policy
    export  BEA_SECURITY_POLICY
    #Oracle settings
    echo "using the Oracle OCI database driver"
    export ORACLE_HOME=/opt/oracle/product/8.1.7
    export NLS_LANG=AMERICAN_AMERICA.UTF8
    export ORACLE_CLIENT_VERSION=817
    export ORACLE_API_VERSION=8
    PATH=$PATH:$ORACLE_HOME/bin
    SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
    _HOME/lib
    PATH=$JDK_HOME/bin:$PATH
    export PATH
    # Set application specific variables
    DOMAIN_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    domain_NAME=eGovStarters
    SERVER_NAME=MyServer
    WLS_PW=weblogic
    # change to domain directory
    cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
    # Allow other users in group to see created files - i.e. logfiles
    umask 027
    # Set system classpath initially to contain WebLogic product JARs
    CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
    #Set the shared library path
    if [ -n "$SHLIB_PATH" ]; then
            SHLIB_PATH=$SHLIB_PATH:$SHARED_LIBRARY_PATH
    else
            SHLIB_PATH=$SHARED_LIBRARY_PATH
    fi
    export SHLIB_PATH
    # Start weblogic
    # change to weblogic home
    cd $WEBLOGIC_HOME
    PATH=$WL_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH
    $JAVACMD -classpath $CLASSPATH -Dbea.home=$BEA_HOME -Dweblogic.Domain=$DOMAIN_NAME -Dweblogic.Name=MyServer weblogic.Admin -ur
    l t3://localhost:$WEBLOGIC_PORT -username system -password $WLS_PW SHUTDOWNIt has obviously something to do with the line
    JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
    ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""I googled for this Xms1024m, Xmx1024m and it turns out to be for memory management for the java virtual machine.
    I don't know why it sais it can't find "-Xms256m" since it's not in the script.
    Anyone with some experience in this field who can help me out?

    ./stopWebLogic.sh[33]: -Xms256m: not found.
    this can be produced by something like this:
    javaoptions="-Xms256m" // or other option too
    $javacmd $javaoptions
    Now if javacmd has not been set, then $javacmd will be evaluated to the empty string, and the program to look for is the first part in $javaoptions, -Xms256m in our case.

  • Opening files from a Novell-Share takes about ten seconds

    Hi there,
    first a few information about our environment:
    Windows 7 Enterprise SP1 Clients with Novell Client installed in latest version
    Windows Server 2008 R2 DCs
    Network-shares based on Novell Netware
    When accessing files on Novell-Shares for the first time it takes about 10 seconds to open. Reopening it or any other file at this location again is totally fast. Waiting about 15 minutes after closing the file causes the lag again.
    We traced our client-side network traffic and saw many Netbios-queries which failed because our WINS-Servers do not know the Netware-Servers. So first it tried it using every WINS-Server (three in our env.) and then on broadcast in the local subnet three
    times. It got no answer and timed out.
    So the next step I tried was to disable Netbios-over-TCP/IP with the radio buttons in the Network Adapter settings. After a reboot, the problem reoccured, but there were no more Netbios queries in the trace.
    After days of searching for a solution I tried to stop the "TCP/IP-Netbios-Helper"-Windows Service on spec. And suddenly every network share access was totally fast. We tried this with other clients, too. Same behavior! We even did not disable
    the NetBios-over-TCP/IP setting. Stopping the service was all we needed to do.
    Unfortunately disabling the service causes problems. The Windows-Login fails with a message "No Logon servers available". Using the full qualified user name ("[email protected]") works. But then we saw that policies were not applied.
    Any ideas, what could cause the lag? Or is it possible to disable this service without any side-effects?
    Bye,
    Jürgen

    Hi,
    What is the result if we access files on other network shares?
    I found a thread in novell forum and suggestion is checking the provider order and put Netware first, open network and sharing center, change adapter settings, Select Advanced on the menu> Advanced settings, Click on Provide Order Tab and change order.
    And have you contact the novel support team? They're more familiar with this product.
    http://forums.novell.com/forum.php
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Using Scripts in Oracle Weblogic Server

    Hello friends,
    I have a query in which I need to use scripts:
    setWLSEnv.sh? or setDomainEnv.sh?
    Thanks

    It depends what you want to do with WebLogic - they can serve different purposes.
    If you want to run WLST scripts against a domain, use setDomainEnv.sh/cmd
    If you want to run scripts against the ORACLE_HOME of WebLogic, use setWLSEnv.sh/cmd.
    Thank you,
    Gavin

  • How to share Sessions between 2 Weblogic ?

    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

    You need to make sure that session tracking is enabled,
    either via cookies or url rewriting. Otherwise, the incoming
    request won't be able to tell the server which session it belongs to.
    Jason
    "Cheung" <[email protected]> wrote in message news:[email protected]..
    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

  • Share SCRIPTS from TOAD

    Hi ,
    I am having a very low net speed at home so cant download toad/plsql developer..
    can somebody login into sys schema and share the script for creating sys.aud$ table ?
    thanks...
    that would be available through toad ..
    thanks
    Kkukreja

    I ran utlrp.sql but of no help :
    SQL> @d:\oracle\product\11.1.0\db_1\rdbms\admin\UTLRP.SQL
    TIMESTAMP
    COMP_TIMESTAMP UTLRP_BGN  2010-12-28 21:50:42
    DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid
    DOC>   objects in the database. Recompilation time is proportional to the
    DOC>   number of invalid objects in the database, so this command may take
    DOC>   a long time to execute on a database with a large number of invalid
    DOC>   objects.
    DOC>
    DOC>   Use the following queries to track recompilation progress:
    DOC>
    DOC>   1. Query returning the number of invalid objects remaining. This
    DOC>      number should decrease with time.
    DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
    DOC>
    DOC>   2. Query returning the number of objects compiled so far. This number
    DOC>      should increase with time.
    DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
    DOC>
    DOC>   This script automatically chooses serial or parallel recompilation
    DOC>   based on the number of CPUs available (parameter cpu_count) multiplied
    DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).
    DOC>   On RAC, this number is added across all RAC nodes.
    DOC>
    DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
    DOC>   recompilation. Jobs are created without instance affinity so that they
    DOC>   can migrate across RAC nodes. Use the following queries to verify
    DOC>   whether UTL_RECOMP jobs are being created and run correctly:
    DOC>
    DOC>   1. Query showing jobs created by UTL_RECOMP
    DOC>         SELECT job_name FROM dba_scheduler_jobs
    DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
    DOC>
    DOC>   2. Query showing UTL_RECOMP jobs that are running
    DOC>         SELECT job_name FROM dba_scheduler_running_jobs
    DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
    DOC>#
    PL/SQL procedure successfully completed.
    TIMESTAMP
    COMP_TIMESTAMP UTLRP_END  2010-12-28 21:50:56
    PL/SQL procedure successfully completed.
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    OBJECTS WITH ERRORS
                      0
    DOC> The following query reports the number of errors caught during
    DOC> recompilation. If this number is non-zero, please query the error
    DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
    DOC> are due to misconfiguration or resource constraints that must be
    DOC> fixed before objects can compile successfully.
    DOC>#
    ERRORS DURING RECOMPILATION
                              0
    PL/SQL procedure successfully completed.
    Invoking Ultra Search Install/Upgrade validation procedure VALIDATE_WK
    Ultra Search VALIDATE_WK done with no error
    PL/SQL procedure successfully completed.
    SQL> COLUMN object_name FORMAT A30
    SQL> SELECT owner,
      2         object_type,
      3         object_name,
      4         status
      5  FROM   dba_objects
      6  WHERE  status = 'INVALID'
      7  ORDER BY owner, object_type, object_name;
    OWNER                          OBJECT_TYPE         OBJECT_NAME
      STATUS
    AUDIT_TEST                     PROCEDURE           EMPLOYER_DETAILS1
      INVALID
    PUBLIC                         SYNONYM             DBA_AUDIT_EXISTS
      INVALID
    PUBLIC                         SYNONYM             DBA_AUDIT_OBJECT
      INVALID
    PUBLIC                         SYNONYM             DBA_AUDIT_SESSION
      INVALID
    PUBLIC                         SYNONYM             DBA_AUDIT_STATEMENT
      INVALID
    PUBLIC                         SYNONYM             DBA_COMMON_AUDIT_TRAIL
      INVALID
    PUBLIC                         SYNONYM             USER_AUDIT_OBJECT
      INVALID
    PUBLIC                         SYNONYM             USER_AUDIT_SESSION
      INVALID
    PUBLIC                         SYNONYM             USER_AUDIT_STATEMENT
      INVALID
    PUBLIC                         SYNONYM             USER_AUDIT_TRAIL
      INVALID
    SYS                            VIEW                DBA_AUDIT_EXISTS
      INVALID
    OWNER                          OBJECT_TYPE         OBJECT_NAME
      STATUS
    SYS                            VIEW                DBA_AUDIT_OBJECT
      INVALID
    SYS                            VIEW                DBA_AUDIT_SESSION
      INVALID
    SYS                            VIEW                DBA_AUDIT_STATEMENT
      INVALID
    SYS                            VIEW                DBA_COMMON_AUDIT_TRAIL
      INVALID
    SYS                            VIEW                USER_AUDIT_OBJECT
      INVALID
    SYS                            VIEW                USER_AUDIT_SESSION
      INVALID
    SYS                            VIEW                USER_AUDIT_STATEMENT
      INVALID
    SYS                            VIEW                USER_AUDIT_TRAIL
      INVALID
    19 rows selected.please suggest
    thanks
    Kkukreja

  • Who can tell me what's wrong about the weblogic server?

    Fri Nov 24 09:30:19 CST 2000:<I> <ServletContext-General> *.jsp: initialization complete
    Fri Nov 24 09:31:11 CST 2000:<E> <HTTP> Connection failure
    java.net.SocketException: Connection shutdown: JVM_recv in socket input stream read
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:90)
    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java, Compiled Code)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Fri Nov 24 09:33:12 CST 2000:<E> <ServletContext-General> Servlet failed with Exception
    java.net.SocketException: socket write error (code=10053)
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java, Compiled Code)
    at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java, Compiled Code)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java, Compiled Code)
    at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java, Compiled Code)
    at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
    at weblogic.servlet.FileServlet.service(FileServlet.java:56)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

    I am experiencing the same error, did you find out what was going on.

  • About BEA WebLogic JMS on the cluster

    Hi,
    I have 3 files which together build in 1 EAR, then deploy on the cluster. I can see my message publish to the distributed topic successfully, but the listener process is not work. Could anyone give me a little clue.
    // this one publish msg to the distributed topic.
    import javax.naming.*;
    import javax.jms.*;
    import javax.rmi.PortableRemoteObject ;
    import java.util.*;
    public class PublishTopic {
    public final static String JNDI_FACTORY = "weblogic.jndi.WLInitialContextFactory" ;
    public final static String JMS_FACTORY = "weblogic.jws.jms.QueueConnectionFactory" ;
    public final static String URL = "t3://localhost:7003,localhost:7005" ;
    public final static String DIST_TOPIC = "dist_topic" ;
    public String publishMsg(String s) throws Exception {
    InitialContext ic = getInitialContext();
    TopicConnectionFactory tcf = (TopicConnectionFactory) PortableRemoteObject.narrow
    (ic.lookup(JMS_FACTORY),TopicConnectionFactory.class);
    TopicConnection tc = tcf.createTopicConnection();
    TopicSession ts = tc.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
    Topic t = ts.createTopic(DIST_TOPIC);
    TopicPublisher tpub = ts.createPublisher(t);
    TextMessage msg = ts.createTextMessage(s);
    tc.start();
    tpub.publish(msg);
    tc.close();
    return "publish - : " + msg.getText();
    public static InitialContext getInitialContext()throws NamingException {
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
    ht.put(Context.PROVIDER_URL,URL);
    return new InitialContext(ht);
    =================================================
    // the listener one.
    import javax.rmi.PortableRemoteObject ;
    import java.util.HashMap;
    import java.util.Date;
    import javax.naming.*;
    import javax.jms.*;
    import java.io.*;
    public class ListenMsg implements MessageListener {
    private static HashMap hm ;
    private static TopicConnection tcon ;
    static {
    // the coding inside static will process once every time
    // class load. The code inside here should be
    // 1. subscrib to the distributed topic
    // 2. refresh the static var.
    ListenMsg lm = new ListenMsg();
    lm.retrieveDB();
    lm.subscribTopic();
    lm = null ;
    public void onMessage(Message m) {
    try {
    PrintWriter p = new PrintWriter(new FileOutputStream
    ("C:/bea/user_projects/applications/TestJMS/JMSLog.txt",true));
    p.println(new Date().toLocaleString());
    p.println(((TextMessage)m).getText() + "\n");
    // check to see the content of m then decide whether
    // to call retrieveDB.
    } catch (Exception e) {
    } finally {
    if (tcon != null)
    try {
    tcon.close();
    } catch (Exception e) {}
    private void retrieveDB () {
    // connect to DB then select the allow/unallow-list.
    private void subscribTopic(){
    try {
    InitialContext ic = PublishTopic.getInitialContext();
    TopicConnectionFactory tcf = (TopicConnectionFactory) PortableRemoteObject.narrow
    (ic.lookup(PublishTopic.JMS_FACTORY),TopicConnectionFactory.class);
    tcon = tcf.createTopicConnection();
    TopicSession tsess = tcon.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
    // crateTopic doesn't actually create a new one but instead
    // obtain a reference to the object which given name.
    Topic t = tsess.createTopic(PublishTopic.DIST_TOPIC);
    TopicSubscriber tsub = tsess.createSubscriber(t);
    tsub.setMessageListener(this);
    tcon.start();
    } catch(JMSException je) {
    je.printStackTrace();
    } catch (NamingException ne) {
    ne.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    public boolean isAuthorized(String username, String servicename) {
    // check against hm.
    return true ;
    ===============================================
    // the web service file.
    public class TestPublish implements com.bea.jws.WebService
    static final long serialVersionUID = 1L;
    * @common:operation
    public String sendMsg(String s) throws Exception {
    String r = "";
    try {
    PublishTopic pt = new PublishTopic();
    r = pt.publishMsg(s);
    } catch(Exception e) {
    e.printStackTrace();
    throw e;
    return r;
    A big thanks in advance.
    Tanin

    Hi
    Please verify that the listener points to the correct JNDI name
    Do you see any error in the log ?
    Jin

  • About installing weblogic commerce server3.1

    hi all:
    I haved already installed weblogic5.1+sp6 on win2000 advanced server
    which can communicate with oracle8i on solaris8. now, there's some error
    when I install weblogic commerce server3.1 on win2000 advanced server.
    step1: weblogic started.
    step2: execute c:\WebLogicCommerceServer3.1\bin\win32\loadrules.bat on
    win2000's command mode
    there's some error message:
    javax.naming.AuthenticationException [Root exception is
    java.lang.SecurityExcept
    ion: Authentication for user system denied in realm weblogic]

    You are trying to run Commerce Server 3.2 on top of WL 6 SP1
    Please read the system requirements of Commerce Server. You'll notice that
    you need WL5.1 SP6
    Sander
    "Henning Pedersen" <[email protected]> wrote in message
    news:3acf1bcd$[email protected]..
    >
    Hi! I'm very new to Bea products, just trying out for now. I'veinstalled Weblogic
    6 SP 1 under c:\bea\weblogic, and that seems to be working fine. I'm nowtrying
    to install Weblogic Commerce & Personalization server, but it won'tstart - here's
    the error when I try to start it:
    JAVA_CLASSPATH ISC:\jdk1.3.0_02\lib\tools.jar;C:\bea\weblogic\lib\weblogic510sp
    6boot.jar;C:\bea\weblogic\classes\boot
    WEBLOGIC_CLASSPATH ISC:\bea\weblogic\lib\weblogic510sp6.jar;C:\bea\weblogic\lic
    >
    ense;C:\bea\weblogic\classes;C:\bea\weblogic\lib\weblogicaux.jar;C:\bea\webl
    ogic
    >
    \lib\weblogic-tags-510.jar;C:\bea\commerce\license;C:\bea\commerce\classes;C
    :\be
    >
    a\commerce\lib\rules.jar;C:\bea\commerce\lib\jrulesserviceprovider.jar;C:\be
    a\co
    >
    mmerce\deploy\bmp\classes;C:\bea\commerce\eval\common\Taxware\classes;C:\bea
    \web
    >
    logic\eval\cloudscape\lib\cloudscape.jar;C:\bea\weblogic\eval\cloudscape\lib
    \too
    ls.jar;C:\bea\weblogic\eval\cloudscape\lib\client.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
    C:\bea\commerce>PAUSE
    Press any key to continue . . .
    Have I skipped something here???
    Hope someone has seen this before.
    Regards,
    Henning
    Funcom Oslo

  • What about parameter weblogic.PosixSocketReaders in WLS 8.1

    Hi,
    I would want to know what is the effect of the parameter weblogic.PosixSocketReaders in wls 8.1?
    The only doc i can read on this subject is http://e-docs.bea.com/wls/docs70/perform/appb_tunetips.html and concerne wls 7.
    Which is the effect if I put this parameter at value 1 (with wls81 and native i/o)?
    Thanks.

    CASE_ID_NUM: 642649
    PosixSocketReaders and how they work in WLS:
    WLS utilizes native code to perform socket handling, called the performance pack. Native code polls sockets on the OS layer if a new socket and data has to be processed, if a socket contains data that WLS is supposed to process it is picked up by Java threads from the WLS SocketReader thread queue. The SocketReader Java threads have the task of passing the socket and the contained raw message to an execute thread performing the application specific processing.
    The flow of a socket and data from the OS to WLS is as follows:
    OS TCP/IP Socket --> WLS native code (performance pack) polls for sockets --> Java SocketReader thread -- dispatch --> WLS Java execute thread (e.g. execute thread from default WLS execute queue)
    The number of SocketReader threads is per default set to 3 on Unix environments, this is generally a good default value. In some case and specific OS environments experience has shown that tuning the number of SocketReader threads is beneficial to get the maximum performance from WLS in dispatching a socket from the native layer to a WLS execute thread.
    The reason why tuning the SocketReaders can have an positive effect is based on two main factors:
    1. SocketReader threads have many Java synchronization blocks as they are working very concurrently on the native code layer. 2. A big number of sockets being opened to WLS
    In case the JVM and/or OS is not very good in handling synchronization locks point 1. is the limiting performance factor of Socketreaders as the JVM and OS are more busy handling Java synchronization locks than doing the actual dispatch work. For such a scenario experience with other customers has shown that using PosixSocketReaders=1 is beneficial
    On the other side if the JVM and OS handle synchronization locks very well it can be beneficial to increase the number of PosixSocketReaders threads and thus allow WLS to dispatch more socket data from the native layer to a WLS execute thread in parallel.
    As the performance of PosixSocketReaders very much depends on the OS / JVM and if the system/application is heavily socket/network related a good value for PosixSocketReaders has to be identified based on test runs. Generally the default value of 3 PosixSocketReaders is good for most applications and environments.

  • Query about the WebLogic conf for APS and Planning

    Hi All,
    We have threee servers used for Hyperion Planning and APS and are load balanced
    Configuration details are as shown below for one server and remaining two servers will also has the same. In this configuration
    APS shows as load balanced and Planning is shown pertaining to that one server alone. Can we make this Planning smartview connection
    to be balanced or APS balance itself will take care of this for the connection of planning?
    Am seeing performance issues with Planning with this configuration and server load is high falling on one server at times and is that due to this
    configuration of Planning Smartview connection falling on one server?
    Your help is much appreciated
    </LocationMatch>
    <LocationMatch /aps>
         SetHandler weblogic-handler
         PathTrim /
         WeblogicCluster
    <ServerName1>:13080,<ServerName2>:13080,<ServerName3>:13080
    WLProxySSL ON
    </LocationMatch>
    <LocationMatch /aps/*>
         SetHandler weblogic-handler
         PathTrim /
         WeblogicCluster
    <ServerName1>:13080,<ServerName2>:13080,<ServerName3>:13080
    WLProxySSL ON
    </LocationMatch>
    <LocationMatch /HyperionPlanning/SmartView>
         SetHandler weblogic-handler
         WLIOTimeoutSecs 6000
         WLCookieName HPSESSIONID
         PathTrim /
         WeblogicCluster <ServerName1>:8300
    </LocationMatch>
    <LocationMatch /HyperionPlanning/SmartView/*>
         SetHandler weblogic-handler
         WLCookieName HPSESSIONID
         WLIOTimeoutSecs 6000
         PathTrim /
         WeblogicCluster <ServerName1>:8300
    </LocationMatch>
    Thanks

    Download location: http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html
    You can upgrade the domain after you install wls 10.3 using QuickStart.
    When we migrated we have moved from windows to linux. We have installed, created domain, created managed servers, configured, etc. from scratch. We didn't face any 'show stopper' issues.

  • Where to share scripts?

    Is there a place I can post some AppleScripts I've written?  I got a few that others might find useful.  Nothing real complex, but they've solved problems I had and may help others.  For example I've got a script that takes a dup list from Araxis Find Dup Files and identifies each set of folders with multiple duplicates along with the number of duplicates and the total numbe of files in each folder.  I've got another that grabs credit card statement data from Safari and puts it into Excel.  (Some banks do not have an export to Excel yet.)

    Most that I've seen are just put up on someone's homepage or web site.
    There were some Scripting Resources over at MacScripter, but they have been under reconstruction for quite a while now.  There is still a Code Exchange forum there.

  • Scripting about users with on line archive which is shared with others.

    We need to generate a script that can retrieve all users in a specific MSAD OU who have: 
     - Full access permissions to another user on their mailbox, where the mailbox they have access to has an online archive. 
     - Script output should be a list of usernames, and the mailbox they have access to which has an archive.
    Many thanks!

    Here is a command which wil get all mailbox permissions.  If you do not know how to use this command then please contact a consultant.
    http://technet.microsoft.com/en-us/library/aa998218(v=exchg.150).aspx
    If you can use the command but are not sure how to configure it then post back with your question.
    ¯\_(ツ)_/¯

Maybe you are looking for