NonStop Servlets for JSP System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
3-18
Configuring Virtual Hosting
Please refer to the Java Debugging Support online documentation for more options
that you can specify for the java.security.debug property. This documentation is located
at http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/debugger.html#jsdp.
Configuring Virtual Hosting
The virtual hosting feature enables you to access web services on multiple IP
addresses or hostnames through a single iTP WebServer/NSJSP environment. Each
virtual host can have its own servlet context or a set of servlet contexts. Servlet
contexts cannot be shared across virtual hosts.
In the iTP_server.xml file, the <Host> element represents a virtual host. One or
more <Host> elements are nested inside an <Engine> element. Inside the <Host >
element, you can nest <Context> elements for the web applications associated with
this virtual host. Exactly one of the Hosts associated with each <Engine> MUST have
a name matching the defaultHost attribute of that <Engine>.
The <Host> element support the following attributes:
appBase
The Application Base directory for this virtual host. This is the
pathname/directory that can contain web applications to be deployed on this
virtual host. You may specify an absolute pathname for this directory, or a
pathname that is relative to the iTPWS_INSTALL_DIR/servlet_jsp directory. If
not specified, the default value (webapps/) will be used.
Example 3-16. Troubleshooting the NSJSP Security Manager
Arglist -Xnoclassgc -Xmx32m -Xss128k -Dbrowserdebug=false \
-Djdbc.drivers=com.tandem.sqlmp.SQLMPDriver \
-Djava.security.manager \
-Djava.security.policy==$env(NSJSP_HOME)/conf/iTP_catalina.policy \
-Djava.security.debug=all \
-Djava.endorsed.dirs=$env(NSJSP_ENDORSED_DIRS) \
-Dcatalina.home=$env(NSJSP_HOME) \
-Djava.io.tmpdir=$env(NSJSP_HOME)/temp \
-DSessionBasedLoadBalancing=true \
com.tandem.servlet.NSJSPBootstrap -config \
$env(NSJSP_HOME)/conf/iTP_server.xml start
Caution. Example 3-16
will generate many megabytes of output! However, it can help you
track down problems by searching for the word "FAILED" and determining which permission
was being checked for. See the Java security documentation for more options that you can
specify here as well.