Modify the default Oracle WebLogic Server configuration files
Perform these steps using the non-privileged user account on the application server.
- Navigate to the Oracle WebLogic Server domain bin directory, for example:
$ cd /u01/app/oracle/Middleware12c/user_projects/domains/empirica/bin
- Open the setDomainEnv.sh file in a text editor.
- At the end of the file, add the following lines:
# Local Customization
export TZ=UTC
export LANG=en_US.UTF-8
export DISPLAY=localhost:99.0
Note: If you do not use the UTC time zone, edit the text accordingly.
- Save and close the file.
- Open the setStartupEnv.sh file in a text editor.
- Search for lines that contain the following text:
com.oracle.db.jdbc7-dms.jar
- Use the hash character (#) to comment out each line, and then replace each line as follows:
if [ "${PRE_CLASSPATH}" != "" ] ; then
#PRE_CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}${COMMON_COMPONENTS_HOME}/modules/features/com.oracle.db.jdbc7-dms.jar"
PRE_CLASSPATH="${PRE_CLASSPATH}${CLASSPATHSEP}${ORACLE_HOME}/jdbc/lib/ojdbc7.jar"
export PRE_CLASSPATH
else
#PRE_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/features/com.oracle.db.jdbc7-dms.jar"
PRE_CLASSPATH="${ORACLE_HOME}/jdbc/lib/ojdbc7.jar"
export PRE_CLASSPATH
fi
- Search for lines that contain the following text:
java.awt.headless=true
- Use the hash character (#) to comment out each line, and then replace each line with a copy of the original, but without
-Djava.awt.headless=true
. For example:#EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dem.oracle.home=/scratch/u01/app/oracle/product/Middleware12c/em -DINSTANCE_HOME=/scratch/u01/app/oracle/product/Middleware12c/user_projects/domains/empirica -Djava.awt.headless=true -Doracle.sysman.util.logging.mode=dual_mode"
EXTRA_JAVA_PROPERTIES="${EXTRA_JAVA_PROPERTIES} -Dem.oracle.home=/scratch/u01/app/oracle/product/Middleware12c/em -DINSTANCE_HOME=/scratch/u01/app/oracle/product/Middleware12c/user_projects/domains/empirica -Doracle.sysman.util.logging.mode=dual_mode"
- Save and close the file.