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-15
Deploy Using the Standalone Application Deployer
Any subdirectory within the application base directory that appears to be an unpacked
web application (that is, contains a /WEB-INF/web.xml file) will receive an
automatically generated context element, even if this directory does not have context
defined in the $NSJSP_HOME/conf/NSJSP/<host-name>/ directory. This
generated context entry will be configured according to the properties set in any
<DefaultContext> element nested in its <Host> element. The context path for this
deployed context will be /servlet_jsp/ followed by the directory name. The URL
needs to include the default NSJSP root directory (/servlet_jsp) when accessing a
web application using this automatically generated context:
http://hostname:port/servlet_jsp/web_application_name
To access a servlet from the browser, specify this servlet keyword in the URL:
http://hostname:port/servlet_jsp/web_application_name/servlet
/Myservlet
This feature allows you to not define a context for your web application in
$NSJSP_HOME/conf/NSJSP/<host-name>/ directory or a filemap in the
filemaps.config file, unless you wish to define non-default properties for the
corresponding context or unless you do not want to add an extra NSJSP root directory
(/servlet_jsp) when accessing a web application.
Deploy Using the Standalone Application Deployer
NSJSP supports a standalone application deployer which validates, compiles, and
deploys a web application to a live NSJSP container. Customer web applications can
be validated and compiled before they are placed in a production environment.
The standalone application deployer consists of the manager Ant tasks, the JSP
compiler, and a task which validates the application deployment descriptor. By using
the Ant script build.xml, the deployer can:
•
Compile and validate without a running NSJSP container
•
Deploy a web application to a running NSJSP container
•
Undeploy a web application in a running NSJSP container
•
Start and stop a web application in a running NSJSP container
•
Reload a web application in a running NSJSP container
The deployer package and the Ant script can be easily integrated with many
application IDE products allowing you to develop and deploy web applications from the
same IDE. See the web.xml file for an example of the Ant script build.xml. In this
example, you can run the Ant script to manage a web application called myapp:
C:\java\nsjsp 5.0\deployer> ant
Buildfile: build.xml
clean:
compile:
[copy] Copying 299 files to C:\java\nsjsp5.0\deployer\build\myapp










