NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Client Deployer in NSJSP 6.0
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
B-2
Setting up an environment in Windows OS
Setting up an environment in Windows OS
This subsection describes the procedure to set up a Client Deployer environment in the
Windows OS. As a result, the applications can be built on Windows OS and can be
deployed on the NSJSP server running on NonStop server.
It is assumed that Apache Ant is installed at the location where the deployer is being
installed. To install the deployer environment:
1. Create a deployer directory.
2. Transfer the build.xml and the deployer.properties files to the deployer
directory, from the NSJSP environment.
3. Create a directory ‘lib’ under the deployer directory.
4. Transfer the jar files from the NSJSP_HOME/lib directory on NonStop to the lib
directory on Windows.
5. Modify the deployer.properties file because it contains information about the
URL of the Manager application on NonStop, the admin user ID, the admin
password, and other critical parameters.
6. Run the Ant command with the required task name in the deployer directory.
Example B-1 shows a sample Ant script for the Client Deployer. For more
information on the Ant tasks, refer http://tomcat.apache.org/tomcat-6.0-
doc/deployer-howto.html.
Configuring NSJSP-specific attributes for Client Deployer
This subsection describes how to configure NSJSP-specific attributes for the Client
Deployer.
A new NSJSP-specific attribute appendContext is introduced in NSJSP 6.0 to
deploy, undeploy, start, stop, and reload the server. This attribute takes a Boolean
value (true or false).
The appendContext indicates whether the default context must be prefixed to the
user given context. For example:
<target name="deploy" description="Deploy web application">
<deploy url="${url}" username="${username}“
password="${password}" path=“/first"
war="${webapp.path}.war" appendContext="true" />
</target>
In the above example, if the path is set to /first, the appendContext is set to
true, and if the command-line parameter
com.tandem.servlet.CONTEXT_PREFIXES is set to a value of
/servlet_jsp, the application will be deployed under the context path
/servlet_jsp/first. If the appendContext is set to false, the application










