NonStop Servlets for JavaServer Pages (NSJSP) 5.0 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-003
3-9
iTP_server.xml
<Context>
A <Context> element defines an individual web application. Note that it is no
longer recommended that you have the <Context> tag in the iTP_server.xml
file. These tags should be moved to the Context configuration file
(<context>.xml) and placed in the $NSJSP_HOME/conf/NSJSP/<host-
name>/ directory.
The default iTP_server.xml file is well commented, read these comments to
become familiar with the contents of this file. Various additional elements, not shown or
described here but included in the default iTP_server.xml file, provide for logging
and other similar functionality, and define authentication realms.
For more information about Tomcat version 5.0, see the Apache Jakarta Tomcat 5
documentation at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html.
The statements in the iTP_server.xml file, shown in Example 3-4, are required to
work with the iTP WebServer.
Context Paths
To add an application, you must add a Context configuration file to
$NSJSP_HOME/conf/NSJSP/<host-name> or in the webapps directory. For
example, you want to add the application orders with associated servlets, JSP and
other resources, enter the context path as shown in Example 3-5:
Example 3-4. iTP_server.xml Statements
<Server debug="0" >
<Service name="NSJSP-iTPWebServer">
<Listener>
<GlobalNamingResources>
<Connector
className="com.tandem.servlet.coyote.tomcat5.
NSJSPCoyoteConnector"
minProcessors="5" maxProcessors="75"
acceptCount="25" debug="0" />
<Engine name="NSJSP" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true">
</Host>
</Engine>
</Service>
</Server>
Example 3-5. Setting the Context Path
<Context path= "/orders" docBase="orders" debug= "0">
</Context>










