NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-002
3-10
iTP_server.xml
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:
The context path shows the context which is the start of the path for any URL 
attempting to locate and run a servlet. The docbase could be used to create a separate 
location for the application, instead of the default webapps directory. For convenience, 
you could name this file as orders.xml so that it is easy to identify later on.
The corresponding filemap from filemaps.config should look like this:
Filemap /orders $server_objectcode
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>










