First Commit - Source Code from Reply

This commit is contained in:
vincenzofariello
2024-05-13 12:54:14 +02:00
parent 73e32a5020
commit a15aee1f08
11184 changed files with 1065913 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
username=<username in chiaro>
password=<password in chiaro>

View File

@@ -0,0 +1,33 @@
#!/bin/sh
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.
DOMAIN_HOME="/bea/beamnp/user_projects/domains/MNPGW"
PRODUCTION_MODE="true"
SERVER_NAME="admin"
#mnp settings begin
. /mnpapp/script/setEnv.sh
MEM_ARGS="-Xms64m -Xmx384m"
#log file
NOW=$(date '+%Y%m%d%H%M%S')
if [ -e ${MNP_LOG_ADMINSERVER_FILE} ] ; then
mv ${MNP_LOG_ADMINSERVER_FILE} ${MNP_LOG_ADMINSERVER_FILE}.$NOW
else
echo File ${MNP_LOG_ADMINSERVER_FILE} non trovato
fi
#mnp settings end
JAVA_OPTIONS="-Dweblogic.system.BootIdentityFile="./BootIdentity.properties" ${JAVA_OPTIONS}"
export JAVA_OPTIONS
nohup ${DOMAIN_HOME}/bin/startWebLogic.sh $* >> ${MNP_LOG_ADMINSERVER_FILE} 2>&1 &

View File

@@ -0,0 +1,19 @@
#!/bin/sh
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.
DOMAIN_HOME="/bea/beamnp/user_projects/domains/MNPGW"
. /mnpapp/script/setEnv.sh
JAVA_OPTIONS="-Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" ${JAVA_OPTIONS}"
JAVA_OPTIONS="-Dweblogic.system.BootIdentityFile="./BootIdentity.properties" ${JAVA_OPTIONS}"
JAVA_OPTIONS="-Dmnpgw_path_properties="${MNP_PROP_FILE}" ${JAVA_OPTIONS}"
JAVA_OPTIONS="-Dsecurity_conf_file="${MNP_SECURITY_PROP_FILE}" ${JAVA_OPTIONS}"
JAVA_OPTIONS="-Dweblogic.security.SSL.ignoreHostnameVerification="true" ${JAVA_OPTIONS}"
export JAVA_OPTIONS
nohup ${DOMAIN_HOME}/bin/startManagedWebLogic.sh mnpserver &

View File

@@ -0,0 +1,17 @@
#!/bin/ksh
###################################################################################
## Update dominio GW da Weblogic 8.1 a Weblogic 10.3.5 ##
## - lanciare il file dalla directory /bea/beamnp/user_projects/domains/MNPGW ##
###################################################################################
CLASSPATH=/bea/beamnp/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar
CLASSPATH=$CLASSPATH:/usr/java6/lib/tools.jar
CLASSPATH=$CLASSPATH:/bea/beamnp/wlserver_10.3/server/lib/weblogic_sp.jar
CLASSPATH=$CLASSPATH:/bea/beamnp/wlserver_10.3/server/lib/weblogic.jar
CLASSPATH=$CLASSPATH:/bea/beamnp/modules/features/weblogic.server.modules_10.3.5.0.jar
CLASSPATH=$CLASSPATH:/bea/beamnp/wlserver_10.3/server/lib/webservices.jar
CLASSPATH=$CLASSPATH:/bea/beamnp/modules/org.apache.ant_1.7.1/lib/ant-all.jar
CLASSPATH=$CLASSPATH:/bea/beamnp/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
java -cp $CLASSPATH weblogic.Upgrade -mode silent -type domain -out upgradeGW.log

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<Domain ConfigurationVersion="8.1.3.0" Name="MNPGW">
<Server CustomIdentityKeyStoreFileName="/mnpapp/cert/mnpkeystore"
CustomIdentityKeyStorePassPhrase="mnpkeystorepwd"
CustomIdentityKeyStoreType="JKS"
ExpectedToRun="false" KeyStores="CustomIdentityAndJavaStandardTrust"
ListenAddress="" ListenPort="7401"
Name="admin" NativeIOEnabled="true"
ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.3.0">
<SSL Enabled="true" HostnameVerificationIgnored="false"
IdentityAndTrustLocations="KeyStores" ListenPort="7402"
Name="admin" ServerPrivateKeyAlias="mnpkey" ServerPrivateKeyPassPhrase="mnpkeypwd"/>
</Server>
<Server CustomIdentityKeyStoreFileName="/mnpapp/cert/mnpkeystore"
CustomIdentityKeyStorePassPhrase="{3DES}sJW6coIgIEwC8Rw4xDpmDw=="
CustomIdentityKeyStoreType="JKS"
CustomTrustKeyStoreFileName="/mnpapp/cert/mnpCAkeystore"
CustomTrustKeyStorePassPhrase="{3DES}3eqOYu9Ko8vdewIH3GHH0fl07FjhjixF"
CustomTrustKeyStoreType="JKS" ExpectedToRun="false"
KeyStores="CustomIdentityAndCustomTrust" ListenAddress=""
ListenPort="7501" Name="mnpserver" NativeIOEnabled="true"
ServerVersion="8.1.3.0" TransactionLogFilePrefix="/mnpapp/transaction/">
<SSL ClientCertificateEnforced="false" Enabled="true"
HostnameVerificationIgnored="false"
IdentityAndTrustLocations="KeyStores" ListenPort="7502"
Name="mnpserver" ServerPrivateKeyAlias="mnpkey"
ServerPrivateKeyPassPhrase="{3DES}t599pdG1WBV2qGyrQyhm4Q==" TwoWaySSLEnabled="true"/>
<ExecuteQueue Name="weblogic.kernel.Default" ThreadCount="75"/>
<Log FileName="/mnpapp/log/domain/WLS.mnpserver.log"
Name="mnpserver" RotationType="byTime"/>
<WebServer
LogFileName="/mnpapp/log/domain/WLS.access.mnpserver.log"
LogRotationType="date" Name="mnpserver"/>
<Log FileName="/mnpapp/log/domain/WLS.mnpserver.log"
Name="mnpserver" RotationType="byTime"/>
</Server>
<JMSFileStore Directory="rmfilestore" Name="FileStore"/>
<WSReliableDeliveryPolicy DefaultRetryCount="10"
DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
<Security Name="MNPGW" PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm" RealmSetup="true"/>
<EmbeddedLDAP
Credential="{3DES}nOqhQWiQFZpqH6DloPIIsTOMSBq/AJcQssVlAhBsMkY=" Name="MNPGW"/>
<SecurityConfiguration
Credential="{3DES}rcN44TDNUZKpRHP5kMDOMUvzS8ZsbiDTEOGJfAMdhbqD5m1oFgHP1qBRe7ZorptAzwVKbTOvIzrZJoTK5xJRExAXKNT8ZSYQ"
Name="MNPGW" RealmBootStrapVersion="1"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<FileRealm Name="wl_default_file_realm"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<JMSServer Name="WSStoreForwardInternalJMSServeradmin"
Store="FileStore" Targets="admin">
<JMSQueue CreationTime="1112526425029"
JNDIName="jms.internal.queue.WSStoreForwardQueue"
JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueadmin"/>
<JMSQueue CreationTime="1112526425754"
JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueadmin"/>
</JMSServer>
<Log FileName="/mnpapp/log/domain/MNPGW.log" Name="MNPGW" RotationType="byTime"/>
</Domain>

View File

@@ -0,0 +1,104 @@
#!/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/beamnp/weblogic81"
# 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/java14"
. "${WL_HOME}/common/bin/commEnv.sh"
# Set SERVER_NAME to the name of the server you wish to start up.
ADMIN_URL="http://localhost:7401"
SERVER_NAME=mnpserver
# Set JAVA_VM to java virtual machine you want to run on server side.
# JAVA_VM=""
# 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 http://localhost:7001'
exit 1
}
# Start WebLogic server
# Reset number of open file descriptors in the current process
# This function is defined in commEnv.sh
resetFd
#mnp settings begin
THIS_PATH=`dirname $0`
. /mnpapp/script/setEnv.sh
MEM_ARGS="-Xms1024m -Xmx1024m"
CLASSPATH="${JNI_BRIDGE_CLASSPATH}${MNP_JAR_FILE}${CLASSPATHSEP}${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 ${MNP_LOG_MNPSERVER_FILE} ${MNP_LOG_MNPSERVER_FILE}.$NOW
#mnp 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" \
-Dmnp_path_properties="${MNP_PROP_FILE}" \
-Dsecurity_conf_file="${MNP_SECURITY_PROP_FILE}" \
weblogic.Server >> ${MNP_LOG_MNPSERVER_FILE} 2>&1 &

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/beamnp/weblogic81"
PRODUCTION_MODE="true"
JAVA_VENDOR="IBM"
JAVA_HOME="/usr/java14"
# 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
#mnp settings begin
THIS_PATH=`dirname $0`
. /mnpapp/script/setEnv.sh
MEM_ARGS="-Xms32m -Xmx256m"
#log file
NOW=$(date '+%Y%m%d%H%M%S')
mv ${MNP_LOG_ADMINSERVER_FILE} ${MNP_LOG_ADMINSERVER_FILE}.$NOW
#mnp 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 >> ${MNP_LOG_ADMINSERVER_FILE} 2>&1 &

View File

@@ -0,0 +1,85 @@
#!/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 mnpserverFE
# 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/beamnp/weblogic81"
#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
# set server name
SERVER_NAME="mnpserver"
if [ "$1" != "" ] ; then
SERVER_NAME="$1"
shift
fi
if [ "${SERVER_NAME}" = "" ] ; then
echo "ERROR: Missing Server Name. "
echo "Usage: stopWebLogic.cmd(sh) [server-name] [admin-url]"
read _val
exit
fi
# set ADMIN_URL
if [ "$1" != "" ] ; then
ADMIN_URL="$1"
shift
else
if [ "${ADMIN_URL}" = "" ] ; then
ADMIN_URL="t3://localhost:7401"
fi
fi
# Call commEnv here.
. "${WL_HOME}/common/bin/commEnv.sh"
#mnp settings begin
THIS_PATH=`dirname $0`
#mnp settings end
echo "Stopping Weblogic Server..."
${JAVA_HOME}/bin/java \
-cp ${WEBLOGIC_CLASSPATH} \
-Dweblogic.system.BootIdentityFile="${THIS_PATH}/BootIdentity.properties" \
weblogic.Admin FORCESHUTDOWN \
-url ${ADMIN_URL} \
${SERVER_NAME}
echo "Done"

View File

@@ -0,0 +1,17 @@
#!/bin/ksh
###################################################################################
## Update dominio GW da Weblogic 8.1 a Weblogic 10.3.5 ##
## - lanciare il file dalla directory /bea/bea1035/user_projects/domains/MNPGW ##
###################################################################################
CLASSPATH=/bea/bea1035/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar
CLASSPATH=$CLASSPATH:/usr/java6/lib/tools.jar
CLASSPATH=$CLASSPATH:/bea/bea1035/wlserver_10.3/server/lib/weblogic_sp.jar
CLASSPATH=$CLASSPATH:/bea/bea1035/wlserver_10.3/server/lib/weblogic.jar
CLASSPATH=$CLASSPATH:/bea/bea1035/modules/features/weblogic.server.modules_10.3.5.0.jar
CLASSPATH=$CLASSPATH:/bea/bea1035/wlserver_10.3/server/lib/webservices.jar
CLASSPATH=$CLASSPATH:/bea/bea1035/modules/org.apache.ant_1.7.1/lib/ant-all.jar
CLASSPATH=$CLASSPATH:/bea/bea1035/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
java -cp $CLASSPATH weblogic.Upgrade -mode silent -type domain -out upgradeGW.log