NonStop Servlets for JSP System Administrator's Guide
Logs and Error Conditions
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
5-2
Logging Configuration
Logging Configuration
You can choose to have multiple log files or a single log file. Multiple log files are the
default. If you choose the single log file option, all the output is sent to a single log file
(that is, servlet.log).
Switching From Multiple Log Files to a Single Log File
If you are switching from the multiple log files option (the default) to the single log file
option, perform the following steps:
1. Stop the NSJSP container as described under Stopping NSJSP on page 2-6.
2. Navigate to your /conf subdirectory, as follows:
cd iTPWS_INSTALL_DIR/servlet_jsp/conf
3. Use the DIFF program to compare the iTP_server.xml with the
iTP_server.xml.sample and save the changes.
4. Back up the iTP_server.xml file.
5. Copy the iTP_server-singleLog.xml.sample to the iTP_server.xml file.
6. Delete the iTP_server.xml.sample and create the
iTP_server.xml.sample by symbolically linking to the iTP_server-
singleLog.xml.sample file, as follows:
ln -s iTP_server-singleLog.xml.sample iTP_server.xml.sample
7. Migrate the changes saved in step 3 to the iTP_server.xml file.
8. Change the Stderr from servlet_error.log to servlet.log in the
servlet.config file, as follows:
Stderr $root/logs/servlet.log
9. Restart the NSJSP container.
Switching From a Single Log File to Multiple Log Files
If you are switching from the single log file option to the multiple log files option,
perform the following steps:
1. Stop the NSJSP container as described under Stopping NSJSP on page 2-6.
2. Navigate to your /conf subdirectory, as follows:
cd iTPWS_INSTALL_DIR/servlet_jsp/conf
3. Use the DIFF program to compare the iTP_server.xml with the
iTP_server.xml.sample and save the changes.
4. Back up the iTP_server.xml file.