First Commit from Source Code Reply

This commit is contained in:
vincenzofariello
2024-05-09 17:40:24 +02:00
parent 11e3b57c5b
commit 107a016cb9
35225 changed files with 1111346 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
username=weblogic
password=weblogic

View File

@@ -0,0 +1,91 @@
#!/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 start WebLogic Server for the domain in the
# current working directory. This script simply sets the SERVER_NAME
# variable and starts server.
#
# To create your own start script for your domain, all you need to set is
# SERVER_NAME, then starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration
# Console Online Help(/ConsoleHelp/startstop.html)
# *************************************************************************
# Initialize the common environment.
WL_HOME="/product/bea/wlserver_10.3"
PRODUCTION_MODE="true"
export PRODUCTION_MODE
JAVA_HOME="/usr/java6/jdk1.6.0_45"
# Call commEnv here AFTER setting the java_vendor to get common environmental settings.
#. ${WL_HOME}/common/bin/commEnv.sh
# Set SERVER_NAME to the name of the server you wish to start up.
SERVER_NAME="admin"
export SERVER_NAME
CLASSPATH="${WEBLOGIC_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar:${CLASSPATH}"
CLASSPATH="${CLASSPATH}:/gnpapp/lib/dbcfx-common.jar:"
export CLASSPATH
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
export USER_MEM_ARGS
JAVA_OPTIONS=
#JAVA_OPTIONS="-Dweblogic.Name="${SERVER_NAME}" ${JAVA_OPTIONS} "
#JAVA_OPTIONS="-Dweblogic.ProductionModeEnabled="${PRODUCTION_MODE}" ${JAVA_OPTIONS} "
#JAVA_OPTIONS="-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" ${JAVA_OPTIONS} "
JAVA_OPTIONS="${JAVA_OPTIONS} -Dserver_clear_name=admin@GNP"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.system.BootIdentityFile=${THIS_PATH}/BootIdentity.properties"
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.security.egd=file:/dev/./urandom"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.security.SSL.enableJSSE=true"
# puntamento alla libreria i686 per escludere gli errori su wlfileio su JMS persistent store
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.library.path=/product/bea/wlserver_10.3/server/native/linux/i686"
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_ADMINSERVER_FILE} ${GNP_LOG_ADMINSERVER_FILE}.$NOW
#gnp settings end
# Call WebLogic Server
echo "Starting admin@GNP ..."
echo
echo CLASSPATH="${CLASSPATH}"
echo
echo PATH="${PATH}"
echo
echo JAVA_OPTIONS="${JAVA_OPTIONS}"
echo
nohup ${DOMAIN_HOME}/bin/startWebLogic.sh $* >> ${GNP_LOG_ADMINSERVER_FILE} 2>&1 &

View File

@@ -0,0 +1,125 @@
#!/bin/sh
# ****************************************************************************
# This script is used to start 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
# starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - Set to true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration Guide
# (/ConsoleHelp/startstop.html).
# ****************************************************************************
# set up WL_HOME, the root directory of your WebLogic installation
WL_HOME="/product/bea/wlserver_10.3"
# set up common environment
# Set Production Mode. When this is set to true, the server starts up in
# production mode. When set to false, the server starts up in development
# mode. If it is not set, it will default to false.
PRODUCTION_MODE="true"
export PRODUCTION_MODE
# Set JAVA_VENDOR to java virtual machine you want to run on server side.
#JAVA_VENDOR="IBM"
# Set JAVA_HOME to java virtual machine you want to run on server side.
JAVA_HOME="/usr/java6/jdk1.6.0_45"
#. "${WL_HOME}/common/bin/commEnv.sh"
# Set SERVER_NAME to the name of the server you wish to start up.
ADMIN_URL="https://10.50.46.84:7002"
SERVER_NAME="dbcfxserver1"
export SERVER_NAME
# Set JAVA_VM to java virtual machine you want to run on server side.
# JAVA_VM="-server"
# Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
# are more than one, include quotes around them. For instance:
# JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
usage()
{
echo "Need to set SERVER_NAME and ADMIN_URL environment variables or specify"
echo "them in command line:"
echo 'Usage: ./startManagedWebLogic.sh [SERVER_NAME] [ADMIN_URL]'
echo "for example:"
echo './startManagedWebLogic.sh managedserver1 https://10.50.46.84:7002'
exit 1
}
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
USER_MEM_ARGS="-Xms1024m -Xmx1524m -XX:MaxPermSize=512m"
export USER_MEM_ARGS
# includo patch bea x code JMS prima di weblogic.jar
CLASSPATH="${IB_CLASSPATH}:${JNI_BRIDGE_CLASSPATH}:${WEBLOGIC_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar::${CLASSPATH}"
export CLASSPATH
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_DBCFXSERVER1_FILE} ${GNP_LOG_DBCFXSERVER1_FILE}.$NOW
#getting admin url
while getopts a: OPT
do
case $OPT in
a) ADMIN_URL="$OPTARG";;
?) echo "Usage: startDBCFXManagedWebLogic1.sh [-a admin-url]"
echo "Example: startDBCFXManagedWebLogic1.sh -a https://10.50.46.84:7002"
exit ;;
esac
done
echo "admin url --> $ADMIN_URL"
JAVA_OPTIONS=
#JAVA_OPTIONS="-Dweblogic.Name="${SERVER_NAME}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.management.server="${ADMIN_URL}" ${JAVA_OPTIONS} "
#JAVA_OPTIONS="-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" ${JAVA_OPTIONS} "
#JAVA_OPTIONS="-Dweblogic.ProductionModeEnabled="${PRODUCTION_MODE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dsecurity_conf_file="${GNP_SECURITY_PROP_FILE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dgnp_path_properties="${GNP_PROP_FILE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dcrontab_path_properties="${CRONTAB_PROP_FILE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.security.SSL.ignoreHostnameVerification=true ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore=/gnpapp/cert/dbcfxCAkeystore ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom ${JAVA_OPTIONS}"
# puntamento alla libreria i686 per escludere gli errori su wlfileio su JMS persistent store
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.library.path=/product/bea/wlserver_10.3/server/native/linux/i686"
# Inserita la seguente per problema comunicazione con il sistema NOW
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.security.SSL.minimumProtocolVersion=SSLv3"
#gnp settings end
# Start WebLogic server
echo "Starting dbcfxserver1@GNP ..."
echo
echo CLASSPATH="${CLASSPATH}"
echo
echo PATH="${PATH}"
echo
echo JAVA_OPTIONS="${JAVA_OPTIONS}"
echo GNP_LOG_DBCFXSERVER1_FILE="${GNP_LOG_DBCFXSERVER1_FILE}"
echo
nohup ${DOMAIN_HOME}/bin/startWebLogic.sh $* >> ${GNP_LOG_DBCFXSERVER1_FILE} 2>&1 &

View File

@@ -0,0 +1,125 @@
#!/bin/sh
# ****************************************************************************
# This script is used to start 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
# starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - Set to true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration Guide
# (/ConsoleHelp/startstop.html).
# ****************************************************************************
# set up WL_HOME, the root directory of your WebLogic installation
WL_HOME="/product/bea/wlserver_10.3"
# set up common environment
# Set Production Mode. When this is set to true, the server starts up in
# production mode. When set to false, the server starts up in development
# mode. If it is not set, it will default to false.
PRODUCTION_MODE="true"
export PRODUCTION_MODE
# Set JAVA_VENDOR to java virtual machine you want to run on server side.
#JAVA_VENDOR="IBM"
# Set JAVA_HOME to java virtual machine you want to run on server side.
JAVA_HOME="/usr/java6/jdk1.6.0_45"
#. "${WL_HOME}/common/bin/commEnv.sh"
# Set SERVER_NAME to the name of the server you wish to start up.
ADMIN_URL="https://10.50.46.84:7002"
SERVER_NAME="dbcfxserver2"
export SERVER_NAME
# Set JAVA_VM to java virtual machine you want to run on server side.
# JAVA_VM="-server"
# Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
# are more than one, include quotes around them. For instance:
# JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
usage()
{
echo "Need to set SERVER_NAME and ADMIN_URL environment variables or specify"
echo "them in command line:"
echo 'Usage: ./startManagedWebLogic.sh [SERVER_NAME] [ADMIN_URL]'
echo "for example:"
echo './startManagedWebLogic.sh managedserver2 https://10.50.46.84:7002'
exit 1
}
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
USER_MEM_ARGS="-Xms1024m -Xmx1524m -XX:MaxPermSize=512m"
export USER_MEM_ARGS
# includo patch bea x code JMS prima di weblogic.jar
CLASSPATH="${IB_CLASSPATH}:${JNI_BRIDGE_CLASSPATH}:${WEBLOGIC_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar::${CLASSPATH}"
export CLASSPATH
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_DBCFXSERVER2_FILE} ${GNP_LOG_DBCFXSERVER2_FILE}.$NOW
#getting admin url
while getopts a: OPT
do
case $OPT in
a) ADMIN_URL="$OPTARG";;
?) echo "Usage: startDBCFXManagedWebLogic1.sh [-a admin-url]"
echo "Example: startDBCFXManagedWebLogic1.sh -a https://10.50.46.84:7002"
exit ;;
esac
done
echo "admin url --> $ADMIN_URL"
JAVA_OPTIONS=
#JAVA_OPTIONS="-Dweblogic.Name="${SERVER_NAME}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.management.server="${ADMIN_URL}" ${JAVA_OPTIONS} "
#JAVA_OPTIONS="-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" ${JAVA_OPTIONS} "
#JAVA_OPTIONS="-Dweblogic.ProductionModeEnabled="${PRODUCTION_MODE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dsecurity_conf_file="${GNP_SECURITY_PROP_FILE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dgnp_path_properties="${GNP_PROP_FILE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dcrontab_path_properties="${CRONTAB_PROP_FILE}" ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.security.SSL.ignoreHostnameVerification=true ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore=/gnpapp/cert/dbcfxCAkeystore ${JAVA_OPTIONS} "
JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom ${JAVA_OPTIONS}"
# puntamento alla libreria i686 per escludere gli errori su wlfileio su JMS persistent store
JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.library.path=/product/bea/wlserver_10.3/server/native/linux/i686"
# Inserita la seguente per problema comunicazione con il sistema NOW
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.security.SSL.minimumProtocolVersion=SSLv3"
#gnp settings end
# Start WebLogic server
echo "Starting dbcfxserver2@GNP ..."
echo
echo CLASSPATH="${CLASSPATH}"
echo
echo PATH="${PATH}"
echo
echo JAVA_OPTIONS="${JAVA_OPTIONS}"
echo GNP_LOG_DBCFXSERVER2_FILE="${GNP_LOG_DBCFXSERVER2_FILE}"
echo
nohup ${DOMAIN_HOME}/bin/startWebLogic.sh $* >> ${GNP_LOG_DBCFXSERVER2_FILE} 2>&1 &

View File

@@ -0,0 +1,17 @@
#!/bin/sh
######################################################################################
## Update dominio GNP da Weblogic 9.2 a Weblogic 10.3.6 ##
## - lanciare il file dalla directory /home/bea/bea1036/user_projects/domains/GNP ##
######################################################################################
CLASSPATH=.
CLASSPATH=$CLASSPATH:/usr/java6/jdk1.6.0_45/lib/tools.jar
CLASSPATH=$CLASSPATH:/product/bea/wlserver_10.3/server/lib/weblogic_sp.jar
CLASSPATH=$CLASSPATH:/product/bea/wlserver_10.3/server/lib/weblogic.jar
CLASSPATH=$CLASSPATH:/product/bea/modules/features/weblogic.server.modules_10.3.6.0.jar
CLASSPATH=$CLASSPATH:/product/bea/wlserver_10.3/server/lib/webservices.jar
CLASSPATH=$CLASSPATH:/product/bea/modules/org.apache.ant_1.7.1/lib/ant-all.jar
CLASSPATH=$CLASSPATH:/product/bea/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
/usr/java6/jdk1.6.0_45/bin/java -cp $CLASSPATH weblogic.Upgrade -mode silent -type domain -responses upgradeGNP.xml -out upgradeGNP.log

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin-silent-responses>
<group name="DomainSelectionGroup">
<plugin name="SelectWebLogicVersionPlugIn">
<input-adapter name="ChoiceIA">
<bind-property name="selectedChoiceIds">
<value>9.0 or higher</value>
</bind-property>
</input-adapter>
</plugin>
<plugin name="DomainDirectorySelectionPlugIn">
<input-adapter name="IA">
<bind-property name="selectedFile">
<value>/product/bea/user_projects/domains/GNP</value>
</bind-property>
</input-adapter>
</plugin>
</group>
</plugin-silent-responses>

View File

@@ -0,0 +1,84 @@
#!/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 start WebLogic Server for the domain in the
# current working directory. This script simply sets the SERVER_NAME
# variable and starts server.
#
# To create your own start script for your domain, all you need to set is
# SERVER_NAME, then starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration
# Console Online Help(/ConsoleHelp/startstop.html)
# *************************************************************************
# Initialize the common environment.
WL_HOME="/bea/bea92/weblogic92"
PRODUCTION_MODE="true"
JAVA_VENDOR="IBM"
JAVA_HOME="/bea/bea92/jdk150_12"
# Call commEnv here AFTER setting the java_vendor to get common environmental settings.
. ${WL_HOME}/common/bin/commEnv.sh
# Set SERVER_NAME to the name of the server you wish to start up.
SERVER_NAME="admin"
CLASSPATH="${WEBLOGIC_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar:${CLASSPATH}"
export CLASSPATH
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
MEM_ARGS="-Xms32m -Xmx512m"
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_ADMINSERVER_FILE} ${GNP_LOG_ADMINSERVER_FILE}.$NOW
#gnp settings end
# Call WebLogic Server
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 "***************************************************"
nohup ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} \
-Dweblogic.Name=${SERVER_NAME} \
-Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} \
-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" \
-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" \
weblogic.Server >> ${GNP_LOG_ADMINSERVER_FILE} 2>&1 &

View File

@@ -0,0 +1,109 @@
#!/bin/sh
# ****************************************************************************
# This script is used to start 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
# starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - Set to true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration Guide
# (/ConsoleHelp/startstop.html).
# ****************************************************************************
# set up WL_HOME, the root directory of your WebLogic installation
WL_HOME="/bea/bea92/weblogic92"
# set up common environment
# Set Production Mode. When this is set to true, the server starts up in
# production mode. When set to false, the server starts up in development
# mode. If it is not set, it will default to false.
PRODUCTION_MODE="true"
# Set JAVA_VENDOR to java virtual machine you want to run on server side.
JAVA_VENDOR="IBM"
# Set JAVA_HOME to java virtual machine you want to run on server side.
JAVA_HOME="/bea/bea92/jdk150_12"
. "${WL_HOME}/common/bin/commEnv.sh"
# Set SERVER_NAME to the name of the server you wish to start up.
ADMIN_URL="https://dbcfxesefe01.telecomitalia.local:7002"
SERVER_NAME="dbcfxserver1"
# Set JAVA_VM to java virtual machine you want to run on server side.
# JAVA_VM="-server"
# Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
# are more than one, include quotes around them. For instance:
# JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
# Start WebLogic server
# Reset number of open file descriptors in the current process
# This function is defined in commEnv.sh
resetFd
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
MEM_ARGS="-Xms1024m -Xmx2048m"
#MEM_ARGS="-Xms3072m Xmx3072m"
# includo patch bea x code JMS prima di weblogic.jar
CLASSPATH="${IB_CLASSPATH}${JMS_PATCH_CLASSPATH}${JNI_BRIDGE_CLASSPATH}${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${JAVA_HOME}/jre/lib/rt.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${CLASSPATH}${SM_CLASSPATH}"
export CLASSPATH
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_DBCFXSERVER1_FILE} ${GNP_LOG_DBCFXSERVER1_FILE}.$NOW
#getting admin url
while getopts a: OPT
do
case $OPT in
a) ADMIN_URL="$OPTARG";;
?) echo "Usage: startDBCFXManagedWebLogic1.sh [-a admin-url]"
echo "Example: startDBCFXManagedWebLogic1.sh -a https://dbcfxesefe01.telecomitalia.local:7002"
exit ;;
esac
done
echo "admin url --> $ADMIN_URL"
#gnp settings end
# Start WebLogic server
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 "***************************************************"
nohup "$JAVA_HOME/bin/java" ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.security.SSL.ignoreHostnameVerification=true \
-Dweblogic.Name=${SERVER_NAME} \
-Dweblogic.management.server=${ADMIN_URL} \
-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" \
-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" \
-Dgnp_path_properties="${GNP_PROP_FILE}" \
-Dcrontab_path_properties="${CRONTAB_PROP_FILE}" \
-Dsecurity_conf_file="${GNP_SECURITY_PROP_FILE}" \
weblogic.Server >> ${GNP_LOG_DBCFXSERVER1_FILE} 2>&1 &

View File

@@ -0,0 +1,109 @@
#!/bin/sh
# ****************************************************************************
# This script is used to start 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
# starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - Set to true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration Guide
# (/ConsoleHelp/startstop.html).
# ****************************************************************************
# set up WL_HOME, the root directory of your WebLogic installation
WL_HOME="/bea/bea92/weblogic92"
# set up common environment
# Set Production Mode. When this is set to true, the server starts up in
# production mode. When set to false, the server starts up in development
# mode. If it is not set, it will default to false.
PRODUCTION_MODE="true"
# Set JAVA_VENDOR to java virtual machine you want to run on server side.
JAVA_VENDOR="IBM"
# Set JAVA_HOME to java virtual machine you want to run on server side.
JAVA_HOME="/bea/bea92/jdk150_12"
. "${WL_HOME}/common/bin/commEnv.sh"
# Set SERVER_NAME to the name of the server you wish to start up.
ADMIN_URL="https://dbcfxesefe01.telecomitalia.local:7002"
SERVER_NAME="dbcfxserver2"
# Set JAVA_VM to java virtual machine you want to run on server side.
# JAVA_VM="-server"
# Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
# are more than one, include quotes around them. For instance:
# JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
# Start WebLogic server
# Reset number of open file descriptors in the current process
# This function is defined in commEnv.sh
resetFd
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
#MEM_ARGS="-Xms1024m -Xmx2048m"
MEM_ARGS="-Xms3072m Xmx3072m"
# includo patch bea x code JMS prima di weblogic.jar
CLASSPATH="${IB_CLASSPATH}${JMS_PATCH_CLASSPATH}${JNI_BRIDGE_CLASSPATH}${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${JAVA_HOME}/jre/lib/rt.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${CLASSPATH}${SM_CLASSPATH}"
export CLASSPATH
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_DBCFXSERVER2_FILE} ${GNP_LOG_DBCFXSERVER2_FILE}.$NOW
#getting admin url
while getopts a: OPT
do
case $OPT in
a) ADMIN_URL="$OPTARG";;
?) echo "Usage: startDBCFXManagedWebLogic2.sh [-a admin-url]"
echo "Example: startDBCFXManagedWebLogic2.sh -a http2://dbcfxesefe01.telecomitalia.local:7002"
exit ;;
esac
done
echo "admin url --> $ADMIN_URL"
#gnp settings end
# Start WebLogic server
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 "***************************************************"
nohup "$JAVA_HOME/bin/java" ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.security.SSL.ignoreHostnameVerification=true \
-Dweblogic.Name=${SERVER_NAME} \
-Dweblogic.management.server=${ADMIN_URL} \
-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" \
-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" \
-Dgnp_path_properties="${GNP_PROP_FILE}" \
-Dcrontab_path_properties="${CRONTAB_PROP_FILE}" \
-Dsecurity_conf_file="${GNP_SECURITY_PROP_FILE}" \
weblogic.Server >> ${GNP_LOG_DBCFXSERVER2_FILE} 2>&1 &

View File

@@ -0,0 +1,111 @@
#!/bin/sh
# ****************************************************************************
# This script is used to start 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
# starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - Set to true for production mode servers, false for
# development mode
# 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)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration Guide
# (/ConsoleHelp/startstop.html).
# ****************************************************************************
# set up WL_HOME, the root directory of your WebLogic installation
WL_HOME="/bea92/weblogic92"
# set up common environment
# Set Production Mode. When this is set to true, the server starts up in
# production mode. When set to false, the server starts up in development
# mode. If it is not set, it will default to false.
PRODUCTION_MODE="true"
# Set JAVA_VENDOR to java virtual machine you want to run on server side.
JAVA_VENDOR="IBM"
# Set JAVA_HOME to java virtual machine you want to run on server side.
JAVA_HOME="/usr/java5"
. "${WL_HOME}/common/bin/commEnv.sh"
# Set SERVER_NAME to the name of the server you wish to start up.
ADMIN_URL="https://dbcfxesefe01.telecomitalia.local:7002"
SERVER_NAME="dbcfxserver2"
# Set JAVA_VM to java virtual machine you want to run on server side.
# JAVA_VM="-server"
# Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
# are more than one, include quotes around them. For instance:
# JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
# Start WebLogic server
# Reset number of open file descriptors in the current process
# This function is defined in commEnv.sh
resetFd
#gnp settings begin
THIS_PATH=`dirname $0`
. /gnpapp/script/setEnv.sh
MEM_ARGS="-Xms1024m -Xmx2048m"
# includo patch bea x code JMS prima di weblogic.jar
CLASSPATH="${IB_CLASSPATH}${JMS_PATCH_CLASSPATH}${JNI_BRIDGE_CLASSPATH}${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${JAVA_HOME}/jre/lib/rt.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${CLASSPATH}"
export CLASSPATH
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${GNP_LOG_DBCFXSERVER2_FILE} ${GNP_LOG_DBCFXSERVER2_FILE}.$NOW
#getting admin url
while getopts a: OPT
do
case $OPT in
a) ADMIN_URL="$OPTARG";;
?) echo "Usage: startDBCFXManagedWebLogic2.sh [-a admin-url]"
echo "Example: startDBCFXManagedWebLogic2.sh -a http://dbcfxesefe01.telecomitalia.local:7001"
exit ;;
esac
done
echo "admin url --> $ADMIN_URL"
#gnp settings end
# Start WebLogic server
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 "***************************************************"
nohup "$JAVA_HOME/bin/java" ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} \
-verbosegc \
-Dweblogic.Name=${SERVER_NAME} \
-Dweblogic.management.server=${ADMIN_URL} \
-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" \
-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" \
-Dgnp_path_properties="${GNP_PROP_FILE}" \
-Dcrontab_path_properties="${CRONTAB_PROP_FILE}" \
-Dsecurity_conf_file="${GNP_SECURITY_PROP_FILE}" \
-Dweblogic.security.SSL.trustedCAKeyStore="/gnpapp/cert/dbcfxCAkeystore" \
-Dweblogic.security.SSL.ignoreHostnameVerification="true" \
weblogic.Server >> ${GNP_LOG_DBCFXSERVER2_FILE} 2>&1 &

View File

@@ -0,0 +1,93 @@
#!/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"