NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
3-13
context.xml
referring to the filemaps.config and the
com.tandem.servlet.CONTEXT_PREFIXES.
Example 3-3 displays a sample server.xml.
For the remaining configuration elements of server.xml, refer
http://tomcat.apache.org/tomcat-6.0-doc/config/server.html
.
context.xml
NSJSP 6.0 provides a default version of context.xml present in the directory
NSJSP_HOME/conf, which is the default context loaded by all applications deployed in
the server.
The <Manager> element must have the classname set to
com.tandem.servlet.catalina.session.NSJSPStandardManager.
<Manager pathname=""
className="com.tandem.servlet.catalina.session.NSJSPStandardMana
ger"/>
The pathname attribute is ignored by NSJSPStandardManager. Because
NSJSPStandardManager is an “in-memory” session manager, it ignores the value of
Example 3-3. server.xml
<Server port="-1">
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<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" />
</GlobalNamingResources>
<Service name="NSJSP">
<Connector protocol="HTTP/1.1"
connectionTimeout="0"
acceptCount="25"
maxThreads="75"/>
<Engine name="NSJSP" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"
digest="MD5"/>
<Host name="localhost" appBase="webapps"
unpackWARs="false" autoDeploy="false"
xmlValidation="false" xmlNamespaceAware="false"
configClass="com.tandem.servlet.catalina.startup.NSJSPContextConfig">
</Host>
</Engine>
</Service>
</Server>










