NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator’s Guide—674372-005
3-42
The server.xml File
Example 3-41 shows the default server.xml file.
Example 3-41. The server.xml File (page 1 of 3)
Ensure that the port is always set to -1.
NSJSP does not support "shutdown" command. It is only possible to shutdown
the server using the freeze;stop command of pathway.
-->
<Server port="-1">
<!--
Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html
-->
<Listener className="org.apache.catalina.core.JasperListener" />
<!--
ServerLifeCycleListener is actually removed from Tomcat7.0. But removing
this is leading to
unavailability of some MBeans required for Admin. So for now we are
retaining this
-->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener
className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<!-- Listener to instantiate NSJSP specific MBeans -->
<Listener className="com.tandem.servlet.NSJSPLifecycleListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/nsjsp-users.xml"
readonly="false" />
</GlobalNamingResources>