Commit 0417cc54 authored by 邱勇's avatar 邱勇

添加核心目录及配置文件

parent 68068186
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
CLASSPATH=$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-util.jar
CLASSPATH=$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-core.jar
CLASSPATH=$CLASSPATH:$BES_HOME/lib/bootstrap/bes-config-provider.jar
CLASSPATH=$CLASSPATH:$BES_HOME/lib/bootstrap/bes-gmssl.jar
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
$JAVA -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" $JAVA_OPTS -cp "$CLASSPATH" com.bes.enterprise.config.digest.DigestMain "$@"
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" bootstrap
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-util.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-core.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-config-provider.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-gmssl.jar
if "%PATCH_CLASSPATH%" == "" goto digest
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:digest
%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" -Dcom.bes.installRoot="%BES_HOME%" com.bes.enterprise.config.digest.DigestMain %*
endlocal
goto end
:error
exit /b 1
:end
exit /b 0
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
if [ ! -f "$BES_HOME/lib/bes-gmcert.jar" ];then
echo The non-gm version does not support gmkeytool!
exit 0;
fi
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-gmssl.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-gmcert.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
$JAVA $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -cp "$CLASSPATH" com.bes.enterprise.cert.BESKeyStoreInitializer "${@}"
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" patch
if not exist "%BES_HOME%\lib\bes-gmcert.jar" (
echo The non-gm version does not support gmkeytool!
goto end
)
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-gmssl.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-gmcert.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
%JAVA% -Dcom.bes.installRoot="%BES_HOME%" %JAVA_OPTS% -cp "%CLASSPATH%" com.bes.enterprise.cert.BESKeyStoreInitializer %*
:error
endlocal
exit /b 1
:end
endlocal
exit /b 0
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-jasper.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-api.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-el.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-bootstrap.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-core.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-webapp-compressor.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
$JAVA $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" -cp "$CLASSPATH" com.bes.enterprise.webtier.util.jsp.BESASJspC "${@}"
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" bootstrap
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-jasper.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-api.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-el.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-bootstrap.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-core.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-webapp-compressor.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
%JAVA% %JAVA_OPTS% -cp "%CLASSPATH%" com.bes.enterprise.webtier.util.jsp.BESASJspC %*
endlocal
goto end
:error
exit /b 1
:end
exit /b 0
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
for pids in $*
do
for process in `ps -ef | grep $pids | awk '{if($3== '$pids'|| $2=='$pids'){ print $2}}'`
do
kill -9 $process
done
done
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
:nextpid
if "%1"=="" goto doexit
taskkill /t /f /pid %1
shift
goto nextpid
:doexit
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-license.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
JAVA_OPTS="$JAVA_OPTS -Dcom.bes.patchEnv=Lite"
cleanup()
{
stty echo
exit 1;
}
trap '' 1 2 3 9 15
"$JAVA" $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" -cp "$CLASSPATH" com.bes.appserv.lic.RegistrationTool "$@"
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" bootstrap
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-license.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
SET "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true -Dcom.bes.patchEnv=Lite"
%JAVA% %JAVA_OPTS% -Dcom.bes.installRoot="%BES_HOME%" -Dcom.bes.instanceRoot="%BES_ROOT%" com.bes.appserv.lic.RegistrationTool %*
endlocal
goto end
:error
exit /b 1
:end
exit /b 0
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-patch.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Dcom.bes.patchRoot=${BES_HOME}"
{ $JAVA $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" -cp "$CLASSPATH" com.bes.patch.cli.PatchLauncher "${@}"
exit; }
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" patch
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-patch.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
SET "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true -Dcom.bes.patchRoot=%BES_HOME%"
%JAVA% %JAVA_OPTS% -Dcom.bes.installRoot="%BES_HOME%" -Dcom.bes.instanceRoot="%BES_ROOT%" -cp "%CLASSPATH%" com.bes.patch.cli.PatchLauncher %* & goto end
:error
endlocal
exit /b 1
:end
endlocal
exit /b 0
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
rem Otherwise either JAVA_BASE or JAVA_HOME are fine
if not "%JAVA_BASE%" == "" goto validateJavaBase
if not "%JAVA_HOME%" == "" goto validateJavaHome
echo Neither the JAVA_HOME nor the JAVA_BASE environment variable is defined
echo At least one of these environment variable is needed to run this program
goto error
:validateJavaBase
rem Check if we have a usable JAVA_BASE
if not exist "%JAVA_BASE%\bin\java.exe" goto errorJavaBase
if not exist "%JAVA_BASE%\bin\javaw.exe" goto errorJavaBase
goto rightJavaBase
:validateJavaHome
rem Check if we have a usable JAVA_HOME
if not exist "%JAVA_HOME%\bin\java.exe" goto errorJavaHome
if not exist "%JAVA_HOME%\bin\javaw.exe" goto errorJavaHome
set JAVA_BASE=%JAVA_HOME%
goto rightJavaBase
:errorJavaBase
echo The JAVA_BASE environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:errorJavaHome
echo The JAVA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightJavaBase
rem Don't override the endorsed dir if the user has set it previously
if not "%JAVA_ENDORSED_DIRS%" == "" goto gotEndorseddir
rem Java 9 no longer supports the java.endorsed.dirs
rem system property. Only try to use it if
rem BES_HOME/endorsed exists.
if not exist "%BES_HOME%\endorsed" goto gotEndorseddir
set "JAVA_ENDORSED_DIRS=%BES_HOME%\endorsed"
:gotEndorseddir
set JAVA="%JAVA_BASE%\bin\java.exe"
for /F tokens^=2^ delims^=^" %%i in ('%%JAVA%% -version 2^>^&1 ^| findstr [\"].*[\"]') do (set result=%%i)
@echo %result% | findstr "^1.[2|3|4|5|6]" > nul
if "%errorlevel%" == "0" (echo Please use JDK 1.7 or higher.
exit /b 1)
@echo %result% | findstr "^1.[7|8]" > nul
if "%errorlevel%" == "1" goto overAddInJdk78
set JAVA_OPTS=%JAVA_OPTS% -Djava.endorsed.dirs="%BES_HOME%\lib\endorsed"
set JAVA_OPTS=%JAVA_OPTS% -Djava.ext.dirs="%JAVA_BASE%\lib\ext;%JAVA_BASE%\jre\lib\ext;%BES_ROOT%\lib\ext"
:overAddInJdk78
@echo %result% | findstr "^1.7" > nul
if "%errorlevel%" == "0" (
set JAVA_OPTS=%JAVA_OPTS% -XX:MaxPermSize=256m -XX:PermSize=128m
) else (
@echo %result% | findstr "^[9|10|11|12|13|14|15|16|17|18]" > nul
if "%errorlevel%" == "0" (
set java_add_opens="--add-opens=java.base/java.io=ALL-UNNAMED"
set java_add_opens=%java_add_opens% --add-opens=java.base/java.lang=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/java.net=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/java.nio=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
@REM Support gmssl when using jdk10+.
set java_add_opens=%$java_add_opens% --add-opens=java.base/javax.crypto=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
@REM Avoid ClassNotFoundException when viewing classloader and using jdk9+.
set java_add_opens=%$java_add_opens% --add-opens=java.base/jdk.internal.module=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
set java_add_opens=%$java_add_opens% --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
set JAVA_OPTS=%$java_add_opens% %JAVA_OPTS%
)
set JAVA_OPTS=%JAVA_OPTS% -XX:MaxMetaspaceSize=256m -XX:MetaspaceSize=128m
)
endlocal
goto end
:error
exit /b 1
:end
exit /b 0
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
# Make sure prerequisite environment variables are set
if [ -z "$JAVA_HOME" -a -z "$JAVA_BASE" ]; then
if $darwin; then
# Bugzilla 54390
if [ -x '/usr/libexec/java_home' ] ; then
export JAVA_HOME=`/usr/libexec/java_home`
# Bugzilla 37284 (reviewed).
elif [ -d "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home" ]; then
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home"
fi
else
JAVA_PATH=`which java 2>/dev/null`
if [ "x$JAVA_PATH" != "x" ]; then
JAVA_PATH=`dirname $JAVA_PATH 2>/dev/null`
JAVA_BASE=`dirname $JAVA_PATH 2>/dev/null`
fi
if [ "x$JAVA_BASE" = "x" ]; then
# XXX: Should we try other locations?
if [ -x /usr/bin/java ]; then
JAVA_BASE=/usr
fi
fi
fi
if [ -z "$JAVA_HOME" -a -z "$JAVA_BASE" ]; then
echo "Neither the JAVA_HOME nor the JAVA_BASE environment variable is defined"
echo "At least one of these environment variable is needed to run this program"
exit 1
fi
fi
if [ -z "$JAVA_BASE" ]; then
JAVA_BASE="${JAVA_HOME}"
fi
# Don't override the endorsed dir if the user has set it previously
if [ -z "$JAVA_ENDORSED_DIRS" ]; then
# Java 9 no longer supports the java.endorsed.dirs
# system property. Only try to use it if
# BES_HOME/endorsed exists.
if [ -d "$BES_HOME"/endorsed ]; then
JAVA_ENDORSED_DIRS="$BES_HOME"/endorsed
fi
fi
# Set standard commands for invoking Java, if not already set.
JAVA="$JAVA_BASE"/bin/java
java_version=`${JAVA} -version 2>&1 | head -n 1 | cut -d '"' -f2 | cut -d '.' -f1-2`
java_version_prefix=${java_version%.*}
java_version_suffix=${java_version##*.}
if [ $java_version_prefix -eq 1 ] && [ $java_version_suffix -lt 7 ]; then
echo "Please use JDK 1.7 or higher."
exit
fi
if [ $java_version_prefix -eq 1 ] && [ $java_version_suffix -le 8 ]; then
JAVA_OPTS="$JAVA_OPTS -Djava.endorsed.dirs=$BES_HOME/lib/endorsed"
JAVA_OPTS="$JAVA_OPTS -Djava.ext.dirs=$JAVA_BASE/lib/ext:$JAVA_BASE/jre/lib/ext:$BES_ROOT/lib/ext"
fi
if [ $java_version_prefix -gt 1 ] || [ $java_version_suffix -ge 8 ]; then
if [ $java_version_prefix -gt 1 ]; then
java_add_opens="--add-opens=java.base/java.io=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/java.lang=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/java.net=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/java.nio=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
# Support gmssl when using jdk10+.
java_add_opens="$java_add_opens --add-opens=java.base/java.security=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/javax.crypto=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"
# Avoid ClassNotFoundException when viewing classloader and using jdk9+.
java_add_opens="$java_add_opens --add-opens=java.base/jdk.internal.module=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED"
java_add_opens="$java_add_opens --add-opens=java.base/sun.nio.ch=ALL-UNNAMED"
JAVA_OPTS="$java_add_opens $JAVA_OPTS"
fi
JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=256m -XX:MetaspaceSize=128m"
else
JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256m -XX:PermSize=128m"
fi
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
set DEBUG_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=0.0.0.0:9009
set SECURE_OPTIONS=-Djava.security.manager -Djava.security.policy="%BES_ROOT%\conf\security\server.policy"
set JAVA_OPTS=%JAVA_OPTS% -server
set JAVA_OPTS=%JAVA_OPTS% -Xmx512m
set JAVA_OPTS=%JAVA_OPTS% -Xms256m
set JAVA_OPTS=%JAVA_OPTS% -XX:+UnlockDiagnosticVMOptions
set JAVA_OPTS=%JAVA_OPTS% -XX:+LogVMOutput
set JAVA_OPTS=%JAVA_OPTS% -XX:LogFile="%BES_ROOT%\logs\jvm.log"
set JAVA_OPTS=%JAVA_OPTS% -XX:+HeapDumpOnOutOfMemoryError
set JAVA_OPTS=%JAVA_OPTS% -XX:HeapDumpPath="%BES_ROOT%\logs\dump\\"
set JAVA_OPTS=%JAVA_OPTS% -DANTLR_USE_DIRECT_CLASS_LOADING=true
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=com.bes.enterprise.logging.BESLogManager
if not ""%1"" == ""--debug"" goto overAddDebugOptions
shift
set JAVA_OPTS=%DEBUG_OPTIONS% %JAVA_OPTS%
:overAddDebugOptions
if not ""%1"" == ""--secure"" goto overAddSecureOptions
shift
set JAVA_OPTS=%JAVA_OPTS% %SECURE_OPTIONS%
:overAddSecureOptions
if not ""%1"" == ""--verbose"" goto overAddVerboseOptions
shift
if not "%1" == "false" goto overAddVerboseOptions
set JAVA_OPTS=%JAVA_OPTS% -Dcom.bes.enterprise.log.verbose=false
:overAddVerboseOptions
set JAVA_OPTS=%JAVA_OPTS% %JVM_SUFFIX_OPTIONS%
exit /b 0
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
DEBUG_OPTIONS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=0.0.0.0:9009"
SECURE_OPTIONS="-Djava.security.manager -Djava.security.policy=$BES_ROOT/conf/security/server.policy"
JAVA_OPTS="$JAVA_OPTS -server"
JAVA_OPTS="$JAVA_OPTS -Xmx512m"
JAVA_OPTS="$JAVA_OPTS -Xms256m"
JAVA_OPTS="$JAVA_OPTS -XX:+UnlockDiagnosticVMOptions"
JAVA_OPTS="$JAVA_OPTS -XX:+LogVMOutput"
JAVA_OPTS="$JAVA_OPTS -XX:LogFile=$BES_ROOT/logs/jvm.log"
JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError"
JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=$BES_ROOT/logs/dump/"
JAVA_OPTS="$JAVA_OPTS -DANTLR_USE_DIRECT_CLASS_LOADING=true"
JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=com.bes.enterprise.logging.BESLogManager"
if [ "$1" = "--debug" ] ; then
shift
JAVA_OPTS="$JAVA_OPTS $DEBUG_OPTIONS"
fi
if [ "$1" = "--secure" ] ; then
shift
JAVA_OPTS="$JAVA_OPTS $SECURE_OPTIONS"
fi
if [ "$1" = "--verbose=false" ] ; then
shift
JAVA_OPTS="$JAVA_OPTS -Dcom.bes.enterprise.log.verbose=false"
fi
JAVA_OPTS="$JAVA_OPTS $JVM_SUFFIX_OPTIONS"
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
set PATCH_ROOT=%BES_HOME%\patch
:conflict
set suffix=%random%
if exist %BIN_HOME%setpatchenvtmp%suffix% goto conflict
"%JAVA_BASE%\bin\java" %JAVA_OPTS% -cp "%BES_HOME%\lib\bootstrap\bes-patch.jar" -Dcom.bes.installRoot="%BES_HOME%" -Dcom.bes.instanceRoot="%BES_ROOT%" com.bes.patch.cli.PatchEnv %* > "%BIN_HOME%setpatchenvtmp%suffix%"
for /f "usebackq delims==" %%p in ("%BIN_HOME%setpatchenvtmp%suffix%") do (
set PATCH_CLASSPATH=%%p
)
del "%BIN_HOME%setpatchenvtmp%suffix%"
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
PATCH_ROOT="${BES_HOME}/patch"
PATCH_CLASSPATH=`"$JAVA" $JAVA_OPTS -cp "$BES_HOME/lib/bootstrap/bes-patch.jar" "-Dcom.bes.installRoot=$BES_HOME" "-Dcom.bes.instanceRoot=$BES_ROOT" com.bes.patch.cli.PatchEnv $PATCH_ENV_TYPE`
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
. "$BES_HOME/bin/setjavaconfig.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
[ -n "$JAVA_OPTS" ] && JAVA_OPTS=`cygpath --path --unix "$JAVA_OPTS"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
JAVA_OPTS=`cygpath --path --windows "$JAVA_OPTS"`
fi
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-util.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-core.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-config-provider.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-patch.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-bootstrap.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-license.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-gmssl.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
$JAVA $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" -cp "$CLASSPATH" com.bes.enterprise.server.bootstrap.ASMain start
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setjavaconfig.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
if "%errorlevel%" == "1" goto error
call "%BES_HOME%\bin\setpatchenv.bat" bootstrap
call "%BES_HOME%\bin\setjavaconfig.bat" %*
rem Configure JAVA 9 specific start-up parameters
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.lang=ALL-UNNAMED"
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.base/java.io=ALL-UNNAMED"
set "JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-util.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-core.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-config-provider.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-patch.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-bootstrap.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-license.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-gmssl.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
%JAVA% %JAVA_OPTS% -Dcom.bes.installRoot="%BES_HOME%" -Dcom.bes.instanceRoot="%BES_ROOT%" -cp "%CLASSPATH%" com.bes.enterprise.server.bootstrap.ASMain start
endlocal
goto end
:error
exit /b 1
:end
exit /b 0
\ No newline at end of file
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
SLEEP=5
if [ ! -z "$1" ]; then
echo $1 | grep "[^0-9]" >/dev/null 2>&1
if [ $? -gt 0 ]; then
SLEEP=$1
shift
fi
fi
FORCE=0
if [ "$1" = "--force" ]; then
shift
FORCE=1
fi
PID_FILE=$BES_ROOT/conf/.pid
PID=0
if [ ! -z "$PID_FILE" ]; then
if [ -f "$PID_FILE" ]; then
if [ -s "$PID_FILE" ]; then
PID=`cat "$PID_FILE"`
kill -0 $PID >/dev/null 2>&1
if [ $? -gt 0 ]; then
echo "PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted."
exit 1
fi
fi
fi
fi
if [ $PID -eq 0 ]; then
PS=ps
PS_OPTS=-ef
OS=`uname -sr`
case $OS in
SunOS*) PS=/usr/ucb/ps
PS_OPTS=-auxw
;;
*)
;;
esac
PID=`$PS $PS_OPTS | grep java | grep BESMain| grep $BES_ROOT| awk '{print $2}'`
fi
if [ -z "$PID" ] || [ $PID -eq 0 ]; then
echo "\$PID_FILE was empty and the server is not running. Stop aborted."
exit 1
fi
if [ -f $JAVA_BASE/lib/tools.jar ]; then
CLASSPATH="$CLASSPATH:$JAVA_BASE/lib/tools.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-util.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-core.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-config-provider.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-server-assembler.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-patch.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
command=`$JAVA $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" -cp "$CLASSPATH" com.bes.enterprise.server.StopServerMain $PID`
eval $command
if [ $? != 0 ]; then
if [ ! -z "$PID" ]; then
echo "The stop command failed. Attempting to signal the process to stop through OS signal."
kill -15 $PID >/dev/null 2>&1
fi
fi
else
echo "Waiting for the server to stop ... "
kill -15 $PID >/dev/null 2>&1
fi
if [ ! -z "$PID" ]; then
while [ $SLEEP -ge 0 ]; do
kill -0 $PID >/dev/null 2>&1
if [ $? -gt 0 ]; then
if [ -f "$PID_FILE" ]; then
rm -f "$PID_FILE" >/dev/null 2>&1
if [ $? != 0 ]; then
if [ -w "$PID_FILE" ]; then
cat /dev/null > "$PID_FILE"
# If BES has stopped don't try and force a stop with an empty PID file
FORCE=0
else
echo "The PID file could not be removed or cleared."
fi
fi
fi
echo "Stop server successfully."
break
fi
if [ $SLEEP -gt 0 ]; then
sleep 1
fi
if [ $SLEEP -eq 0 ]; then
echo "BES did not stop in time."
if [ $FORCE -eq 0 ]; then
echo "PID file was not removed."
fi
echo "To aid diagnostics a thread dump has been written to standard out."
kill -3 $PID
fi
SLEEP=`expr $SLEEP - 1 `
done
fi
KILL_SLEEP_INTERVAL=5
if [ $FORCE -eq 1 ]; then
if [ -z "$PID" ]; then
echo "Kill failed: \$PID_FILE was empty and the server is not running."
else
if [ $PID -gt 0 ]; then
echo "Killing BES with the PID: $PID"
kill -9 $PID
while [ $KILL_SLEEP_INTERVAL -ge 0 ]; do
kill -0 $PID >/dev/null 2>&1
if [ $? -gt 0 ]; then
if [ -f "$PID_FILE" ]; then
rm -f "$PID_FILE" >/dev/null 2>&1
if [ $? != 0 ]; then
if [ -w "$PID_FILE" ]; then
cat /dev/null > "$PID_FILE"
else
echo "The PID file could not be removed."
fi
fi
fi
echo "The BES process has been killed."
break
fi
if [ $KILL_SLEEP_INTERVAL -gt 0 ]; then
sleep 1
fi
KILL_SLEEP_INTERVAL=`expr $KILL_SLEEP_INTERVAL - 1 `
done
if [ $KILL_SLEEP_INTERVAL -lt 0 ]; then
echo "BES has not been killed completely yet. The process might be waiting on some system call or might be UNINTERRUPTIBLE."
fi
fi
fi
fi
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" bootstrap
set FORCE=0
if ""%1"" == ""--force"" goto setForce
goto overSetForce
:setForce
shift
set FORCE=1
:overSetForce
set PID_FILE=%BES_ROOT%\conf\.pid
if exist "%PID_FILE%" goto getPid
goto emptyPid
:getPid
for /f "usebackq delims==" %%p in ("%PID_FILE%") do (
set PID=%%p
)
if ""%PID%"" == """" goto emptyPid
goto validateServerStart
:emptyPid
set JPS="%JAVA_BASE%\bin\jps.exe"
if not exist %JPS% (
echo "PID file does not exist, the server maybe not started."
goto error
)
for /f %%a in ('%JPS% -v ^| findstr BESMain ^| findstr /L /C:%BES_ROOT%') do set PID=%%a
if not defined PID (
echo "The server is not started."
goto error
)
if not %PID% GTR 0 (
echo "The server pid from jps was not greater than zero."
goto error
)
:validateServerStart
tasklist /fo list | findstr %PID%
if "%errorlevel%" == "0" goto stopServer
echo "PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted."
goto error
:stopServer
if not exist "%JAVA_BASE%\lib\tools.jar" (
set FORCE=1
goto killServerByPid
)
set CLASSPATH=%CLASSPATH%;%JAVA_BASE%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-util.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-core.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-config-provider.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-server-assembler.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-patch.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
%JAVA% %JAVA_OPTS% -Dcom.bes.installRoot="%BES_HOME%" -Dcom.bes.instanceRoot="%BES_ROOT%" -cp "%CLASSPATH%" com.bes.enterprise.server.StopServerMain %PID%
@REM stop failed. Shutdown port disabled? Try a normal taskkill.
if "%errorlevel%" == "0" goto end
:killServerByPid
if ""%PID%"" == """" goto error
if "%FORCE%" == "0" goto error
TASKKILL /F /FI "PID eq %PID%"
timeout /t 1 /nobreak > nul
tasklist /fo list | findstr %PID%
if "%errorlevel%" == "1" (
del /q %PID_FILE%
goto end
)
echo "BES has not been killed completely yet. The process might be waiting on some system call or might be UNINTERRUPTIBLE."
goto error
endlocal
:error
echo "Stop server failed."
exit /b 1
:end
echo "Stop server successfully."
exit /b 0
#!/bin/sh
#
# Copyright (c) 2018-2022
# Beijing Baolande Software Corporation
#
# All Rights Reserved
#
cygwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
esac
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set BES_HOME if not already set
[ -z "$BES_HOME" ] && BES_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
# Copy BES_ROOT from BES_HOME if not already set
[ -z "$BES_ROOT" ] && BES_ROOT="$BES_HOME"
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.conf, in rare case when it is needed.
CLASSPATH=
. "$BES_HOME/bin/setenv.conf"
PATCH_ENV_TYPE=bootstrap
. "$BES_HOME/bin/setpatchenv.conf"
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$JAVA_BASE" ] && JAVA_BASE=`cygpath --unix "$JAVA_BASE"`
[ -n "$BES_HOME" ] && BES_HOME=`cygpath --unix "$BES_HOME"`
[ -n "$BES_ROOT" ] && BES_ROOT=`cygpath --unix "$BES_ROOT"`
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
[ -n "$PATCH_CLASSPATH" ] && PATCH_CLASSPATH=`cygpath --path --unix "$PATCH_CLASSPATH"`
fi
# Ensure that neither BES_HOME nor BES_ROOT contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $BES_HOME in
*:*) echo "Unable to start as BES_HOME contains a colon (:) character";
exit 1;
esac
case $BES_ROOT in
*:*) echo "Unable to start as BES_ROOT contains a colon (:) character";
exit 1;
esac
# For OS400
if $os400; then
# Set job priority to standard for interactive (interactive - 6) by using
# the interactive priority - 6, the helper threads that respond to requests
# will be running at the same priority as interactive jobs.
COMMAND='chgjob job('$JOBNAME') runpty(6)'
system $COMMAND
# Enable multi threading
export QIBM_MULTI_THREADED=Y
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
JAVA_BASE=`cygpath --absolute --windows "$JAVA_BASE"`
BES_HOME=`cygpath --absolute --windows "$BES_HOME"`
BES_ROOT=`cygpath --absolute --windows "$BES_ROOT"`
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
PATCH_CLASSPATH=`cygpath --path --windows "$PATCH_CLASSPATH"`
[ -n "$JAVA_ENDORSED_DIRS" ] && JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
fi
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bes-core.jar"
CLASSPATH="$CLASSPATH:$BES_HOME/lib/bootstrap/bes-common-util.jar"
if [ -n "$PATCH_CLASSPATH" ] ; then
CLASSPATH="$PATCH_CLASSPATH:$CLASSPATH"
fi
$JAVA $JAVA_OPTS -Dcom.bes.installRoot="$BES_HOME" -Dcom.bes.instanceRoot="$BES_ROOT" -cp "$CLASSPATH" com.bes.enterprise.webtier.util.ServerInfo "${@}"
\ No newline at end of file
@echo off
@REM
@REM Copyright (c) 2018-2022
@REM Beijing Baolande Software Corporation
@REM
@REM All Rights Reserved
@REM
setlocal
rem Guess BES_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%BES_HOME%" == "" goto validateBesHome
set "BES_HOME=%CURRENT_DIR%"
if exist "%BES_HOME%\bin\startserver.bat" goto rightBesHome
cd ..
set "BES_HOME=%cd%"
cd "%CURRENT_DIR%"
:validateBesHome
if not exist "%BES_HOME%\bin\setenv.bat" goto errorBesHome
if not exist "%BES_HOME%\bin\setpatchenv.bat" goto errorBesHome
goto rightBesHome
:errorBesHome
echo The BES_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto error
:rightBesHome
rem Copy BES_ROOT from BES_HOME if not defined
if not "%BES_ROOT%" == "" goto setBesRoot
set "BES_ROOT=%BES_HOME%"
:setBesRoot
rem Ensure that neither BES_HOME nor BES_ROOT contains a semi-colon
rem as this is used as the separator in the classpath and Java provides no
rem mechanism for escaping if the same character appears in the path. Check this
rem by replacing all occurrences of ';' with '' and checking that neither
rem BES_HOME nor BES_ROOT have changed
if "%BES_HOME%" == "%BES_HOME:;=%" goto besHomeNoSemicolon
echo Unable to start as BES_HOME contains a semicolon (;) character
goto error
:besHomeNoSemicolon
if "%BES_ROOT%" == "%BES_ROOT:;=%" goto besRootNoSemicolon
echo Unable to start as BES_ROOT contains a semicolon (;) character
goto error
:besRootNoSemicolon
set CLASSPATH=
call "%BES_HOME%\bin\setenv.bat"
call "%BES_HOME%\bin\setpatchenv.bat" bootstrap
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bes-core.jar
set CLASSPATH=%CLASSPATH%;%BES_HOME%\lib\bootstrap\bes-common-util.jar
if "%PATCH_CLASSPATH%" == "" goto overSetPatchClassPath
set CLASSPATH=%PATCH_CLASSPATH%;%CLASSPATH%
:overSetPatchClassPath
SET "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true"
%JAVA% %JAVA_OPTS% -Dcom.bes.installRoot="%BES_HOME%" -Dcom.bes.instanceRoot="%BES_ROOT%" -cp "%CLASSPATH%" com.bes.enterprise.webtier.util.ServerInfo %*
endlocal
goto end
:error
exit /b 1
:end
exit /b 0
\ No newline at end of file
#license.manager.server=http://192.168.29.103:8888
#license.namespace=\u6d4b\u8bd5\u516c\u53f8
#license.group=N/A
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
\ No newline at end of file
-----BEGIN DSA PRIVATE KEY-----
MIIBSwIBADCCASwGByqGSM44BAEwggEfAoGBAP1/U4EddRIpUt9KnC7s5Of2EbdS
PO9EAMMeP4C2USZpRV1AIlH7WT2NWPq/xfW6MPbLm1Vs14E7gB00b/JmYLdrmVCl
pJ+f6AR7ECLCT7up1/63xhv4O1fnxqimFQ8E+4P208UewwI1VBNaFpEy9nXzrith
1yrv8iIDGZ3RSAHHAhUAl2BQjxUjC8yykrmCouuEC/BYHPUCgYEA9+GghdabPd7L
vKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFnEj6EwoFhO3
zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTxvqhRkImo
g9/hWuWfBpKLZl6Ae1UlZAFMO/7PSSoEFgIUY1XYW5BbouTN+EhNCirmRJw3e5Q=
-----END DSA PRIVATE KEY-----
-----BEGIN DSA PUBLIC KEY-----
MIIBuDCCASwGByqGSM44BAEwggEfAoGBAP1/U4EddRIpUt9KnC7s5Of2EbdSPO9E
AMMeP4C2USZpRV1AIlH7WT2NWPq/xfW6MPbLm1Vs14E7gB00b/JmYLdrmVClpJ+f
6AR7ECLCT7up1/63xhv4O1fnxqimFQ8E+4P208UewwI1VBNaFpEy9nXzrith1yrv
8iIDGZ3RSAHHAhUAl2BQjxUjC8yykrmCouuEC/BYHPUCgYEA9+GghdabPd7LvKtc
NrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFnEj6EwoFhO3zwky
jMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTxvqhRkImog9/h
WuWfBpKLZl6Ae1UlZAFMO/7PSSoDgYUAAoGBAMzqdRxMxNSwQqSh3cAht0VcrO2K
mD4DK7LhIDd28CPjybAPGovOXU/VWbvkOuVXRUNfR8mChjQY7rUoTxQYe55udCUf
5NmeDkiVH3pZlWpP8h25I8Mv8t7X8+hjVV0VYWGcYRPkYm6I2bszMrIG5YvqoD/+
hG47J3qIpWev1OE6
-----END DSA PUBLIC KEY-----
admin;{SSHA256}+f8HEDkuj7o4S+vOXXVX7ZR84zB8DJHNoyXQeT0Dk4tZ4W0Jnt4ryg==;besadmin
\ No newline at end of file
// ========== SYSTEM CODE PERMISSIONS =========================================
// These permissions apply to javac
grant codeBase "file:${java.home}/lib/-" {
permission java.security.AllPermission;
};
// These permissions apply to all shared system extensions
grant codeBase "file:${java.home}/jre/lib/ext/-" {
permission java.security.AllPermission;
};
// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
grant codeBase "file:${java.home}/../lib/-" {
permission java.security.AllPermission;
};
// These permissions apply to all shared system extensions when
// ${java.home} points at $JAVA_HOME/jre
grant codeBase "file:${java.home}/lib/ext/-" {
permission java.security.AllPermission;
};
// ========== CODE PERMISSIONS =======================================
// These permissions apply to the servlet API classes
// and those that are shared across all class loaders
// located in the "lib" directory
grant codeBase "file:${com.bes.installRoot}/lib/-" {
permission java.security.AllPermission;
};
// If using a per instance lib directory, i.e. ${com.bes.instanceRoot}/lib,
// then the following permission will need to be uncommented
// grant codeBase "file:${com.bes.instanceRoot}/lib/-" {
// permission java.security.AllPermission;
// };
// ========== WEB APPLICATION PERMISSIONS =====================================
// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// for all files and directories in its document root.
grant {
// Required for JNDI lookup of named JDBC DataSource's and
// javamail named MimePart DataSource used to send mail
permission java.util.PropertyPermission "java.home", "read";
permission java.util.PropertyPermission "java.naming.*", "read";
permission java.util.PropertyPermission "javax.sql.*", "read";
// OS Specific properties to allow read access
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";
// JVM properties to allow read access
permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "java.specification.version", "read";
permission java.util.PropertyPermission "java.specification.vendor", "read";
permission java.util.PropertyPermission "java.specification.name", "read";
permission java.util.PropertyPermission "java.vm.specification.version", "read";
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
permission java.util.PropertyPermission "java.vm.specification.name", "read";
permission java.util.PropertyPermission "java.vm.version", "read";
permission java.util.PropertyPermission "java.vm.vendor", "read";
permission java.util.PropertyPermission "java.vm.name", "read";
// Required for OpenJMX
permission java.lang.RuntimePermission "getAttribute";
// Allow read of JAXP compliant XML parser debug
permission java.util.PropertyPermission "jaxp.debug", "read";
// All JSPs need to be able to read this package
permission java.lang.RuntimePermission "accessClassInPackage.com.bes.enterprise.web";
// Precompiled JSPs need access to these packages.
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.el";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime";
permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.jasper.runtime.*";
// Precompiled JSPs need access to these system properties.
permission java.util.PropertyPermission
"org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER", "read";
permission java.util.PropertyPermission
"org.apache.el.parser.COERCE_TO_ZERO", "read";
// The cookie code needs these.
permission java.util.PropertyPermission
"com.bes.enterprise.webtier.STRICT_SERVLET_COMPLIANCE", "read";
permission java.util.PropertyPermission
"com.bes.enterprise.util.http.ServerCookie.STRICT_NAMING", "read";
permission java.util.PropertyPermission
"com.bes.enterprise.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR", "read";
// Applications using WebSocket need to be able to access these packages
permission java.lang.RuntimePermission "accessClassInPackage.com.bes.enterprise.web.websocket";
permission java.lang.RuntimePermission "accessClassInPackage.com.bes.enterprise.web.websocket.server";
// Applications need to access these packages to use the Servlet 4.0 Preview
permission java.lang.RuntimePermission "accessClassInPackage.com.bes.enterprise.webtier.servlet4preview";
permission java.lang.RuntimePermission "accessClassInPackage.com.bes.enterprise.webtier.servlet4preview.http";
};
<?xml version="1.0" encoding="UTF-8"?>
<!-- server -->
<server>
<web-container>
<http-service>
<access-log format="%h %l %u %t &quot;%r&quot; %s %b %D" rotation-enabled="true" rotation-enabled-by-size="false" max-history-files="10" rotation-size="10458760" file-date-format=".yyyy-MM" buffered="true" encoding="UTF-8"></access-log>
<jar-scanner scan-all-directories="false" scan-all-files="false" scan-class-path="true" scan-bootstrap-class-path="false">
<jar-scan-filter default-pluggability-scan="true" default-tld-scan="true">
</jar-scan-filter>
</jar-scanner>
<http-file cache-ttl="5000" caching-allowed="true" cache-max-size="262144" allow-linking="false"/>
</http-service>
<http-listener gmssl-enabled="false" max-connections="-1" tcp-no-delay="true" enabled="true" jk-enabled="false" io-independent="false" default-virtual-server="server" security-enabled="false" app-write-buf-size="8192" http2-enabled="false" address="0.0.0.0" app-read-buf-size="8192" accept-count="1024" thread-pool="http-thread-pool" io-mode="NIO" connection-timeout="60000" port="8080" name="http-listener-1">
<http-protocol response-character-encoding="ISO-8859-1" disable-upload-timeout="true" async-timeout="10000" dns-lookup-enabled="false" allow-trace="false" compressible-mime-type="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript" xpowered-by="false" max-post-size="2097152" max-parameter-count="10000" compression-min-size="2048" request-character-encoding="ISO-8859-1" uri-encoding="UTF-8" no-compression-user-agents="" connection-upload-timeout="300000" compression="off"/>
<keep-alive keep-alive-timeout="60" max-keep-alive-requests="1024"/>
<gmssl key-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" key-alias="bes" keystore-file="${com.bes.instanceRoot}/conf/security/keystore.bks" keystore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw=="/>
<property name="pollerThreadCount" value="1"/>
<http2-protocol max-trailer-size="8192" read-timeout="10000" initial-window-size="65535" compressible-mime-type="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript" write-timeout="10000" max-trailer-count="100" max-concurrent-stream="200" compression-min-size="2048" max-header-size="8192" max-concurrent-stream-execution="200" max-header-count="100" no-compression-user-agents="" compression="off"/>
<ssl keystore-type="JKS" key-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" truststore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" certificate-file="${com.bes.instanceRoot}/conf/security/cert.pem" ssl-mode="JSSE" certificate-key-file="${com.bes.instanceRoot}/conf/security/key.pem" truststore-file="${com.bes.instanceRoot}/conf/security/cacerts.jks" tls12-enabled="true" truststore-type="JKS" ssl3-enabled="false" tls-enabled="true" tls13-enabled="false" certificate-chain-file="${com.bes.instanceRoot}/conf/security/chain.pem" key-alias="bes" cert-type="CER" client-auth="false" tls11-enabled="true" ciphers="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5" keystore-file="${com.bes.instanceRoot}/conf/security/keystore.jks" keystore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw=="/>
</http-listener>
<http-listener gmssl-enabled="false" max-connections="-1" tcp-no-delay="true" enabled="false" jk-enabled="false" io-independent="false" default-virtual-server="server" security-enabled="true" app-write-buf-size="8192" http2-enabled="false" address="0.0.0.0" app-read-buf-size="8192" accept-count="1024" thread-pool="http-thread-pool" io-mode="NIO" connection-timeout="60000" port="8443" name="http-listener-2">
<http-protocol response-character-encoding="ISO-8859-1" disable-upload-timeout="true" async-timeout="10000" dns-lookup-enabled="false" allow-trace="false" compressible-mime-type="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript" xpowered-by="false" max-post-size="2097152" max-parameter-count="10000" compression-min-size="2048" request-character-encoding="ISO-8859-1" uri-encoding="UTF-8" no-compression-user-agents="" connection-upload-timeout="300000" compression="off"/>
<keep-alive keep-alive-timeout="60" max-keep-alive-requests="1024"/>
<gmssl key-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" key-alias="bes" keystore-file="${com.bes.instanceRoot}/conf/security/keystore.bks" keystore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw=="/>
<property name="pollerThreadCount" value="1"/>
<http2-protocol max-trailer-size="8192" read-timeout="10000" initial-window-size="65535" compressible-mime-type="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript" write-timeout="10000" max-trailer-count="100" max-concurrent-stream="200" compression-min-size="2048" max-header-size="8192" max-concurrent-stream-execution="200" max-header-count="100" no-compression-user-agents="" compression="off"/>
<ssl keystore-type="JKS" key-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" truststore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" certificate-file="${com.bes.instanceRoot}/conf/security/cert.pem" ssl-mode="JSSE" certificate-key-file="${com.bes.instanceRoot}/conf/security/key.pem" truststore-file="${com.bes.instanceRoot}/conf/security/cacerts.jks" tls12-enabled="true" truststore-type="JKS" ssl3-enabled="false" tls-enabled="true" tls13-enabled="false" certificate-chain-file="${com.bes.instanceRoot}/conf/security/chain.pem" key-alias="bes" cert-type="CER" client-auth="false" tls11-enabled="true" ciphers="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5" keystore-file="${com.bes.instanceRoot}/conf/security/keystore.jks" keystore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw=="/>
</http-listener>
<virtual-server name="server" state="on" http-listeners="http-listener-1,http-listener-2" stuck-thread-max-time="0" stuck-thread-timer-interval="10">
<property name="accessLogEnabled" value="inherit" />
<property name="accessLogDirectory" value="${com.bes.instanceRoot}/logs/access" />
<property name="accessLogPrefix" value="server_access_log" />
</virtual-server>
<session-config>
<cookie-processor allow-equals-in-value="false" allow-http-seps-in-v0="false" allow-name-only="false" always-add-expires="true" forward-slash-is-separator="false"></cookie-processor>
</session-config>
<session-managers>
<session-manager name="default" class-name="com.bes.enterprise.webtier.session.DefaultManager">
<manager-properties>
<property name="maxInactiveInterval" value="1800"/>
<property name="reapInterval" value="60"/>
<property name="maxActiveSessions" value="-1"/>
</manager-properties>
<session-id-generator jvm-route="" session-id-length="16"></session-id-generator>
</session-manager>
</session-managers>
</web-container>
<thread-pools>
<thread-pool name="http-thread-pool" max-threads="128" min-spare-threads="8" max-queue-size="4096" max-idle-time="60000"/>
</thread-pools>
<!-- naming-service -->
<naming-service>
</naming-service>
<!-- security-service -->
<security-service lock-enabled="false" default-realm="file">
<auth-realm name="file" class-name="com.bes.enterprise.webtier.realm.UserDatabaseRealm" pathname="${com.bes.instanceRoot}/conf/security/keyfile" />
</security-service>
<resources>
<!--Uncomment it to add JDBC or other resource-->
<!--
<jdbc-resource min-idle="8" validation-query-timeout="0" enable-leakage-recovery="false" fetch-size="0" enabled="true" statement-cache-size="10" password="{AES}LbXTEvFBCFWheq7AAaghXw==" test-on-borrow="true" max-wait-time-in-millis="60000" max-queries="1000" max-connection-age="0" idle-timeout="300" rollback-on-return="false" initial-pool-size="8" sql-trace="false" validate-atmost-once-period-in-seconds="120" test-while-idle="false" enable-auto-commit-on-return="false" validation-query="" log-failed="false" jta-managed="false" url="jdbc:oracle:thin:@192.168.29.129:1521:orcl" log-slow="false" max-evictable-idle-timeout="-1" max-pool-size="32" fail-all-connection="false" connection-leak-timeout-in-seconds="0" name="MyDataSource" statement-timeout-in-seconds="-1" resource-type="java.sql.Driver" access-to-underlying-connection-allowed="false" driver-class-name="oracle.jdbc.driver.OracleDriver" pool-statements="false" username="system">
<property name="serverName" value="#serverName#"/>
<property name="portNumber" value="#portNumber#"/>
<property name="databaseName" value="#databaseName#"/>
</jdbc-resource>
-->
</resources>
<!-- log-service -->
<log-service log-file="${com.bes.instanceRoot}/logs/server.log" rotation-enabled="true" rotation-time="0" rotation-size="104857600" max-history-files="10">
<module-log-level module-name="core" level="INFO" logger-names="com.bes.enterprise.appserver.admin.launcher;com.bes.enterprise.appserver.startup;com.bes.patch;com.bes.appserv.lic"/>
<module-log-level module-name="configuration" level="INFO" logger-names="com.bes.enterprise.config;com.bes.enterprise.remoting;com.bes.enterprise.appserver.serverbeans"/>
<module-log-level module-name="web" level="INFO" logger-names="com.bes.enterprise.server.builder;com.bes.enterprise.web;com.bes.enterprise.webtier;org.apache.el;com.bes.enterprise.naming;com.bes.enterprise.jasper;com.bes.web.sm"/>
<module-log-level module-name="deployment" level="INFO" logger-names="com.bes.enterprise.appserv.deployment"/>
<module-log-level module-name="jdbc" level="INFO" logger-names="com.bes.enterprise.gjc"/>
<module-log-level module-name="jmx" level="INFO" logger-names="com.bes.enterprise.admin.mbeanserver"/>
<module-log-level module-name="gmssl" level="WARNING" logger-names="com.bes.enterprise.cipher.jsse"/>
</log-service>
<!-- jmx-connector -->
<jmx-connector enabled="true" address="0.0.0.0" port="6600" security-enabled="false" auth-realm-name="file">
<ssl keystore-file="${com.bes.instanceRoot}/conf/security/keystore.jks" key-alias="bes" key-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" keystore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" keystore-type="JKS" truststore-file="${com.bes.instanceRoot}/conf/security/cacerts.jks" truststore-pass="{AES}PrzBD+FLE0Wheq7AAaghXw==" truststore-type="JKS" client-auth="false"
tls-enabled="true" tls11-enabled="true" tls12-enabled="true" tls13-enabled="false">
</ssl>
</jmx-connector>
<hotdeploy-config directory="${com.bes.instanceRoot}/hotdeploy" enabled="true" virtual-server="server" session-manager="default" watched-resources="*" check-interval="3" jsp-precompile="false" delegate="false" />
</server>
#######################################################################
#
# Copyright (c) 2021
# Beijing Baolande Software Corporation
# All Rights Reserved.
#
# Please contact BES technical support in the following ways:
# Website: www.bessystem.com
# Email: support@bessystem.com
# Tel: 400 650 1976
#
#######################################################################
# The BES software license information:
# Version: 9.5.5
# Customer Name: BES TRIAL
# Serial Number: 0DP4-FDHMDG-77AKM6-NAW2
# Description: DEVELOPMENT admin_001
5133567A644739745A584975626D46745A54314352564D6756464A4A5155774B55484A765A48566A64433530615852735A54314352564D4B55484A765A48566A644335325A584A7A615739750A50546B754E533431436C4279623252315933517564486C775A54314D6158526C436B7870593256756332557564486C775A54314552565A46544539515455564F5641704665484270636E6B750A615735305A584A32595777394D54677A436C526C636D307564486C775A543077436B563463476C796553356B5958526C5051704665476C304C6D6C7564475679646D467350546379436C4A6C0A5A326C7A644756794C6D5A6C59585231636D553956305643436C4E6C636D6C6862433575645731695A5849394D4552514E4331475245684E524563744E7A6442533030324C553542567A494B0A54574634564768795A57466B4C6D4E76645735305054554B556D566E61584E305A5849755A47567A59334A706348527062323439524556575255785055453146546C514B51557339526A64450A5154417851555A475244637752546C444D454A464D444E424E7A41314D554A424E305A474F444D34524445314E30457852417051636D39715A574E304C6D35686257553954693942436B4E770A6453356A623356756444307843673D3D
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment