1. Introduction
2. Pre-requisites
2.1 Hardware Requirements
2.2 Apache Web Server / Tomcat Servlet Container
2.3 Java
2.4 Java Servlets
2.5 3rd-Party Java Archives (Jar files)
2.6 Password verification / identification of Users
3. Installation of Download Version of VSWAP2
3.1 Installation of VSWAP on Unix/Linux
3.2 Installation of VSWAP on Windows
3.3 Post Installation
4. Configuring the Test Suite
4.1 Setting your CLASSPATH environment variable
4.2 Configuring the Required Parameters
4.3 Modifying Configuration Parameters
4.4 Executing the Configuration Tool
4.5 Accessing VSWAP
5. Protocol / Application Integration
5.1 Configuration Parameters used for Protocol/Application Test Suite Integration
5.2 Creating IP Address Allocation Files
5.3 Removing IP Address Allocations
6. Integration with Apache Web Server and Tomcat
7. The Log File
8. Reporting Problems
VSWAP is implemented in Java. And is designed to operate as a Servlet Web Application that is operated within a Servlet Container environment, please see http://java.sun.com/products/servlet/index.html for details of the Java Servlet environment and Web Applications.
These instructions are designed for use with the Apache Web Server version 1.3.20 or greater, Tomcat Servlet Container version 3.2.3 or greater and the Apache module mod_jk.
VSWAP2 is known to work on the following hardware platforms/software combinations:
If you are using Apache Web Server/Tomcat then it is recommended that you use at least Apache 1.3.20, Tomcat 3.2.3 or Tomcat 3.3 and mod_jk. Please see the Apache and Tomcat web sites for details on how to configure/install those technologies. Please note that at this time VSWAP has NOT been tested using Tomcat 4.0.2 or Apache 2.0.
It is recommended that you use ajp13 as the
communication protocol between Apache and Tomcat, the VSWAP configuration
tool will generate an Apache configuration file that is tailored for ajp13
and mod_jk. You must ensure that you have a worker configured for
the ajp13.
You must respect any and all licensing conditions and terms of use as required by each of the 3rd party vendors.
Please note that the URLs given below are
accurate at the time of writing (29/October/2001).
|
|
|
|
|
|
|
|
Need version 1.2, file javamail-1_2.zip. |
|
|
|
|
Need version 1.0.1, file jaf1_0_1.zip. |
|
|
|
|
Need version 7, file jdom-b7.tar.gz or jdom-b7.zip. |
|
|
|
|
Need version 1.2.3, file Xerces-J-bin.1.2.3.tar.gz. There are issues with the use of version higher than 1.2.3 with JDOM 7. |
|
|
|
|
Need version 3.2.0, file cryptix32-20001002-r3.2.0.zip. |
|
HttpServletRequest.getRemoteUser ()must NOT return null. This means that you must ensure that your Web Server requires Users to "log-in" (i.e. provide a valid username/password combination). VSWAP will create users within the system via the user of the "CreateUser" Servlet, if will also then update the file [VSWAP_INSTALLATION_DIR]/passwds/.htpasswd with the username and if you are running on a Unix machine an encrypted value for the password, the format of the .htpasswd file is suitable for use with the Apache module mod_auth. If you are running VSWAP on a Windows machine then the password will NOT be encrypted.
The file was created on Solaris 2.8 using the GNU gzip program version 1.3 and the GNU tar program version 1.13.
VSWAP is designed to be installed in a single
directory, with all data needed by VSWAP being held in sub-directories within
the installation directory (this will be referred to throughout the document
as [VSWAP_INSTALLATION_DIR]). Note: the directory must be accessible
from your Web Server.
mkdir [VSWAP_INSTALLATION_DIR]
where [VSWAP_INSTALLATION_DIR] is the name of the directory that you want VSWAP to be installed to, for example: /usr/local/vswap/vswap2
Then place the vswap2_XX.tar.gz file into the [VSWAP_INSTALLTION_DIR]:
mv vswap2_XX.tar.gz [VSWAP_INSTALLATION_DIR]
gzip -d vswap2_XX.tar.gz
tar xf vswap2_XX.tar
This will then expand the archive into the
directory.
You should create the VSWAP installation
directory [VSWAP_INSTALLATION_DIR] and then extract the archive to that
directory.
WEB-INF
conf
data
interface
logs
passwds
templates
testinfo
testrecords
tools
vswapProperties.baseproperties
You should check the permissions of the logs, passwds and testrecords directories, they must be writable by the User that executes the Servlet Container.
It is strongly recommended that you do NOT execute the Servlet Container as the super user (on Unix) or as an Administrator (on Windows).
Note: a common gotcha is that the WEB-INF and WEB-INF/classes directories do not have execute permissions for the User who executes the Servlet Container, if this occurs then VSWAP will not be able to start because the Servlet Container will not be able to find/load the InitSystem servlet. You must also ensure that the logs, passwds and testrecords directories are writable by the User who executes the Servlet Container.
[VSWAP_INSTALLATION_DIR]/WEB-INF/classes
and:
[VSWAP_INSTALLATION_DIR]/tools
It should be noted that the vswapProperties.baseproperties
file contains a number of parameters that are not listed below, please note
that these parameters should NOT be modified. They are used mainly
for configuration of the Test Suite. Please note that The Open Group
does not provide support for the configuration of a downloaded Test Suite,
if you wish to purchase support for the download version please contact:
vswap-help@opengroup.org
|
|
|
|
|
|
This is the name of the Test Suite, in general it better to have this the same as [VSWAP_INSTALLATION_DIR] however this is not mandated. This parameter should be set once and NOT modified for the life-time of the Test Suite release, modifying this parameter AFTER VSWAP has been started can cause errors to occur. | Any, it is set initially to "vswap2". |
|
|
This tells VSWAP where it lives in the file system, this is needed for creating the configuration files and creating User test sessions and the log. All directories within VSWAP are configured to be sub-directories of this directory by default. | Any, it is set initially to
"/usr/local/vswap2/".
However it must be a valid directory within the file system, NFS mounts are possible for Unix installations and for mapped Network drives for Windows installations. Note that this parameter MUST be provided AND must be a fully qualified path within the file system, it cannot be a relative path. You MUST ensure that this parameter has a trailing / on the end of it's value. Please note this should be / regardless of whether you have installed on Unix or Windows. |
|
|
This is the name of the machine that
is hosting VSWAP, this should be a fully qualified DNS name or IP
address that is available on your network, for example www.opengroup.org
or 10.10.10.100. If you are running VSWAP on a different port,
i.e. other than 80 then this should also be appended to the end of
this parameter, i.e. www.opengroup.org:10000.
This parameter is the basis for the URLs that are used within the Test Suite and are selected by the User via their browser. |
Any, it is set initially to
"localhost".
However this must be a valid IP address or DNS name that can be resolved by Clients of the Test Suite. Note that this parameter MUST be provided AND must contain the port number to use if VSWAP is running on any port other than 80. |
|
|
This is the basic URL that is used
within the Test Suite, it is also the URL to access the Test Suite
for HTML and WML Clients.
Note modifying this parameter has an impact on the configuration that is required for your Web Server and/or Servlet Container. |
Any, however this must have the HttpServerName parameter within it. Set initially to "http://[HttpServerName]/[vswapname]", if it recommended that this is NOT modified. |
|
|
A verbose name that is used on the Index page. | Any, it is set initially to "WAP 2" |
|
|
A verbose name giving information about the type of release. | Any, it is set initially to "Download" |
|
|
A verbose name indicating the date of release of the Test Suite. | Any, it is set initially to "21 May 2003" |
|
|
Used in the Test Suite to indicate what release is in use. | Any, it is set initially to "VSWAP2" |
|
|
If set to true then problems found within the Test Suite will be recorded to the log file AND an email sent to the Administrator (please see the adminemail parameter) | Either true or false. Is used in conjunction with the adminemail and smtphost parameters. It is set initially to "false". |
|
|
This should be an email address that is used to send problem emails to when an error occurs within the Test Suite, it is also used when VSWAP is unable to allocate an IP address, please see Protocol / Application Integration for details of the IP address allocation) | Should be a valid email address, only used if emailProblems is set to "true". |
|
|
VSWAP uses SMTP to send emails to the adminemail address if the emailProblems parameter is set to "true". If set this should be set to a valid smtp host within your network. | Should be a valid fully qualified hostname for a SMTP host. Only used if emailProblems is set to "true". |
|
|
Used when creating the Apache configuration file. | Should be either "ajp13" or "ajp12". Set initially to "ajp13". |
|
|
Please see section Removing IP Address Allocations for details about this parameter. | Any. Set initially to "AdminUser". |
|
|
Please see section Removing IP Address Allocations for details about this parameter. | Any. Set initially to "1234abcd". |
|
|
Used to indicate whether a new log
file should be created when VSWAP is restarted or should the same
log file be used. The log file can be found in the directory
[VSWAP_INSTALLATION_DIR]/logs called: [vswapname].logfile.
If set to "true" then when VSWAP is restarted any existing log file will be renamed to [vswapname].logfile.[current time in milliseconds] and a new log file created. If set to "false" then the existing log file will be used and log messages will be appended to the file. It is recommended that this parameter is not modified. |
Either "true" or "false". Set initially to "true". |
|
|
Indicates whether VSWAP should output
"human readable" XML when creating/modifying User test records or
should leave out unnecessary space.
This option is useful only for debugging and should not be modified. Warning: changing this parameter to "true" can have an impact on performance and disk space usage. |
Either "true" or "false". Set initially to "false". |
|
|
Indicates whether VSWAP should compress
the XML for User test records/execution logs etc.
This option should only be used if your installation machine is severely limited for space, it should not be modified. If you need to modify this parameter to "true" please contact the Open Group for assistance. Warning: changing this parameter to "true" can have an impact on performance and disk space usage. |
Either "true" or "false". Set initially to "false". |
|
|
Please see Configuration Parameters used for Protocol/Application Test Suite Integration for details about this parameter. | Any, this MUST be provided. Set initially to "[VSWAP_INSTALLATION_DIR]/data/activerelayipinfo/activerelayinfo". |
|
|
Please see Configuration Parameters used for Protocol/Application Test Suite Integration for details about this parameter. | Any, this MUST be provided. Set initially to "localhost". |
|
|
Please see Configuration Parameters used for Protocol/Application Test Suite Integration for details about this parameter. | Any, this MUST be provided. Set intially to "7999". |
|
|
Please see Configuration Parameters used for Protocol/Application Test Suite Integration for details about this parameter. | Any, this MUST be provided. Set intially to "Both". |
The configuration file is written in XML,
parameters are specified using the following syntax:
In general you should NOT use the replace-property element.
The properties file MUST conform to the normal XML syntax and validation rules.
There is NO DTD for the properties file, error detection is performed via code.
If you need to set a parameter then place the value of the parameter between the opening <value> and closing </value> elements for that parameter.
For example to set the value of "vswapname":
<property id="vswapname">To set the value of "basedir":<value>vswap2</value></property>
<property id="basedir"><value>/usr/local/vswap/vswap2/</value></property>
To configure VSWAP your current working directory
should be [VSWAP_INSTALLATION_DIR] and you should execute the following
command:
java ConfigureDownloadVSWAP vswapProperties.basepropertiesThe tool will then load the properties file, and then create a number of files that are needed by VSWAP, you must ensure that you have permission to write to the [VSWAP_INSTALLATION_DIR]/conf, [VSWAP_INSTALLATION_DIR]/WEB-INF and [VSWAP_INSTALLATION_DIR]/passwds directories since files are created in those directories.
The following files are created (all directories
given are relative to [VSWAP_INSTALLATION_DIR]:
|
|
|
|
|
|
|
The file used by the Servlet Container to indicate what Servlets can be accessed for the Servlet Context. |
|
|
|
The file that indicates the properties available to VSWAP, these are loaded into VSWAP at start-up time. |
|
|
|
This file is only useful for installations
that are using Apache as the Web Server and Tomcat as the Servlet
Container. If Apache is used this file indicates what directories
should be protected and the password files to use to protect them.
If you are using Apache as the Web Server and Tomcat as the Servlet
Container then just adding the line:
Include [VSWAP_INSTALLATION_DIR]/conf/vswapApacheConf.[vswapname] to your httpd.conf file will let Apache know how to communicate with Tomcat for this Servlet Context (VSWAP). |
|
|
|
This file contains the username/password for the properties AdminUser/AdminPassword it is used to protect the Administration Servlets (see section Removing IP Address Allocations for details of the use of those parameters). This file is only useful if your are using Apache as your Web Server, if not it can be safely removed. |
If you need to modify any properties after these files have been created then you can re-execute the tool, the tool will then ask you for confirmation before overwriting any files. Please note for any changes to take effect in VSWAP you must restart your Servlet Container. VSWAP only loads it's configuration at start-up time.
When the configuration tool has finished
it will output some text indicating what you should do next to get VSWAP
running, this text is heavily biased towards Apache/Tomcat. However
the XML fragment output is required regardless of the Servlet Container
used, the fragment, will take the following form:
<Context path=[vswapname]" docBase="[VSWAP_INSTALLATION_DIR]" crossContext="false" debug="0" reloadable="false" trusted="false" />this fragment should be placed in the relevant place within your Servlet Container configuration file, please see your Servlet Container vendor documentation for details of this. If you are using Tomcat then please see the Integration with Apache Web Server and Tomcat section for details of how to use that fragment with Tomcat.
http://[HttpServerName]/[vswapname]or instance:
http://testing.opengroup.org/vswap2
this is the URL to use for both HTML Clients
and WAP Clients, however they will see different pages.
To execute Protocol test sessions you must configure the test suite such that it has IP addresses available for use when Protocol testing occurs. Please see the section on Creating IP Address Allocation Files for details of creating the IP address files required.
You must also ensure that the "ModeOfOperation" configuration parameter is set to either "ProtocolOnly" or "Both", please see the section on Configuration Parameters used for Protocol/Application Test Suite Integration for details of setting that parameter.
NOTE: Protocol testing can only occur if
the Active Relay has been installed. Please refer to the documentation
provided by NCC for details of installing the Active Relay.
The configuration parameters required for Protocol/Application
test suite integration are:
When creating the IP Address Allocation files you must ensure that where you store the files and the names of the files conform to the configuration parameter: ActiveRelayIPAddressAllocationBaseFileName, please see the table below for details of the usage and meaning of this parameter.
You should create 4 separate files, the configuration tool will only create a single file for a given WAP Service, this file is then the "master" list for all the IP addresses to be used for that service. The 4 files should have a specific ending, either co, cl, sco or scl. These endings are used in conjunction with the value in ActiveRelayIPAddressAllocationBaseFileNameActiveRelayIPAddressAllocationBaseFileName by VSWAP to find the correct allocation file when an IP address needs to be allocated.
So if the value of ActiveRelayIPAddressAllocationBaseFileName is:
/usr/local/vswap/vswap2/data/activerelayinfo/info
then you should create the following files:
/usr/local/vswap/vswap2/data/activerelayinfo/infoco
/usr/local/vswap/vswap2/data/activerelayinfo/infocl
/usr/local/vswap/vswap2/data/activerelayinfo/infosco
/usr/local/vswap/vswap2/data/activerelayinfo/infoscl
To create the file you should use the Java tool in the [VSWAP_INSTALL_DIR]/tools directory. You must ensure that your CLASSPATH environment variable is set to the correct values (please see the section on setting your CLASSPATH variable). You should then execute the following command:
java CreateActiveRelayIPAddressFile [WAP Service] [IP Address Range] [Output File]
where [WAP Service] is one of co, cl, sco, scl, [IP Address Range] is a range of IP addresses that are to be used for testing purposes, the format of the range should be: A.B.C.D-E, where A, B, C and positive integers in the range 1-255 and D and E are positive integers in the range 1-254. [Output File] is the name to use when creating the file, note no automatic extensions are added, you must ensure that the filename ends correctly, i.e. co if the WAP Service is co.
For example the command:
java CreateActiveRelayIPAddressFile co 10.10.10.100-200 infoco
will create a file named infoco in the current
directory for the WAP Service Connection-Oriented (co) for all IP addresses
in the range 10.10.10.100 to 10.10.10.200 inclusive.
If you are using Apache and have used the
Apache configuration file generated by the ConfigureDownloadVSWAP tool then
access to this servlet will be protected. This protection can be configured
via the following 2 configuration parameters:
|
|
|
|
|
|
Controls access to administration Servlets. Is the username to provide when accessing the protected Servlets. | Initially set to "AdminUser". |
|
|
Controls access to administration Servlets. Is the password to provide when accessing the protected Servlets. | Initially set to "1234abcd". |
The servlet then shows a form that should be completed and submitted to then remove the IP address allocations. Please note that the allocations are removed from the Users test sessions AND the IP address allocation files, this information is NOT recoverable and can have an impact on Users testing. Note the Open Group does not provide any accept any liability for the removal of IP addresses from Users test sessions.
The options on the form are:
|
|
|
|
|
You should pick the WAP Service that wish to free up IP addresses for, either CO (Connection Oriented), CL (Connection Less), SCO (Secure Connection Oriented) or SCL (Secure Connection Less) |
|
|
This is the number of days since the
current time since a test session was accessed/modified (via some
kind of activity) by the User, this is used by the system to determine
which test sessions to consider for clean-up, for example if you set
this value to 30 (the default) then only test sessions that have NOT
been modified for 30 days or more will be considered in the IP address
cleanup.
If you set this value to 0 then it will consider ALL test sessions in the cleanup. |
|
|
If selected then a report describing what sessions can be/were cleaned up will be sent to the administrator email address (please see the section on the Administrator email). |
|
|
If selected then no de-allocations will be made, only a report will be generated as to which test sessions can be de-allocated. |
To start the de-allocation process press the "Start Deallocation" button. When the de-allocation process has finished a report will be returned to the screen indicating what test sessions were affected (or would be affected depending upon the value of "Report Only").
Include [VSWAP_INSTALLATION_DIR]/conf/vswapApacheConf.[vswapname]this file is produced by the configuration tool, please see section Executing the Configuration Tool for details of this file.
The XML fragment output by the configuration tool can be used directly in the Tomcat server.xml configuration file. It should be placed as a child of the "ContextManager" element, the fragment takes the form:
<Context path="[vswapname]" docBase="[VSWAP_INSTALLATION_DIR]" crossContext="false" debug="0" reloadable="false" trusted="false" />
Unable to start VSWAP Test Engine for release: [vswapname].This indicates that an error has occurred at start-up time and the error should be logged in the Servlet Container log, for Tomcat this is the "servlet.log", for other Servlet Containers please see your vendor documentation for the location of the servlet log. The error message there should indicate where the problem lies, a common source of errors lies in the XML within the configuration files.
The Open Group are NOT responsible the operation or action of any 3rd party software used by VSWAP.