Introduction
The GRIA Client Management software itself is
contained within a single WAR (or
"web archive") file
gria-client-mgt.war,
located within the /war directory
of this package. Once the pre-requisites
have been set-up and the war file has been deployed to Tomcat, the
web-based
administration interface guides the user through the rest of the
installation
process.
If you wish to use the registry service, you must also install the XML database service, eXist.
Upgrading
If you have 5.x version of this package already installed, you can
upgrade it to the lastest version without having to perform a
completely new installation. This can be done via the Tomcat Web
Application Manager using the following procedure:
- Start up Tomcat and select "Tomcat Manager" from the Administration menu.
- Locate the package from the Applications sections.
- Select undeploy from the Commands column.
- On WinXP only you should start and stop tomcat
- Scroll
down to the WAR file to deploy subsection, within the Deploy section.
Beside the "Select WAR file to upload" box, click the browse icon and
select the WAR file from the unpacked distribution.
- Click the Deploy button. An OK message at the top of the page indicates that the WAR has been successfully deployed to Tomcat.
Having successfully deployed the war file, you can invoke it by just
clicking on /gria-client-mgt from the Applications section. You will
then be asked to select a configuration directory.
To upgrade ensure that you select the configuration directory used in the previous installation.
Prerequisites
The minimum recommended machine specification required to run this software package as well as software prerequisites can be found here.
Additionally, GRIA Client
Management package requires the following software prerequisites
Platform specific details on installing these software packages are provided below.
Preparing Your System
The documentation that explains how to install and configure the
pre-requisites on different operating systems and how to configure
their firewall settings, can be found here.
Deploying the
Service to Tomcat
Deployment of the
gria-client-mgt.war
file is based on the standard procedure which should already be
familiar to Tomcat users. If, however, this is not the case
then this
section can be used as a guide on how to deploy and invoke the the
web application. The home directory of Tomcat is denoted by
<TOMCAT_HOME>
The next steps require the use of a web browser to complete
the war file deployment.
- Using a web browser, load the main Tomcat server
page (e.g. http://<servername>:8080) and select the
"Tomcat Manager" link.
N.B. "<servername>"
should be replaced with the IP address or fully qualified hostname of
the computer running the Tomcat server.
You will be
prompted for a username and password to be entered before displaying
the manager page. Use "admin" as the username and enter the password
that selected either by using the Tomcat installer (WinXP) or by
editing the <TOMCAT_HOME>/conf/tomcat-users.xml
(Linux) .
- The page which loads once
login has been successful presents the following sections:
- Manager
- lists the command controls and help functions
- Applications
- lists
the applications currently deployed within Tomcat
- Deploy
- options for deploying applications to Tomcat
- Server
Information - lists
specific information on Tomcat and the base platform it was installed to
Scroll down to the WAR file to deploy
subsection, within the Deploy section.
Beside the "Select WAR file to upload" box, click the
browse icon and select the gria-client-mgt.war
file,
before clicking the "Deploy" button:
- An
"OK" message at the top of the page indicates that the war has been
successfully deployed to Tomcat.
The GRIA Client Management package should now also be listed
within the Applications
section. Note here in the last column is where individual applications
may be started, stopped,
reloaded or if desired undeployed
completely from within Tomcat.
This completes the first part of the installation and
deployment of the GRIA Client Management package.
Deploying eXist to Tomcat
Download eXist (goto download page). In order to install the war-file, you have to rename it into exist.war and deploy it under Tomcat.
It is recommended to change the admin login details of the eXist database using the eXist Database Administration
homepage of eXist. Login as "admin" as described on the Administration
homepage. After login, select "Manage Users" on the left-hand side
menu. Select the "admin" checkbox and press "Edit". Define a new
password, recognize it and press "Change". Afterwards logout using the
left-hand side menu.
Configuring the Service
Having successfully deployed the war file, its web
administration
interface can now be accessed by clicking on the
/gria-client-mgt
link in the
Applications section.
Alternatively you can invoke the web application via:
http://<servername>:8080/gria-client-mgt.
N.B. "<servername>" should be replaced with the
IP address or fully qualified hostname of the computer running the
Tomcat server.
On starting the web application you will be presented with instructions
on setting up an administrator login for the service. Once you have done this,
the web application will guide you through the rest of the installation
process.
If you get a 401 Not Authorized error without being prompted to log in, then this probably
means that the Java compiler isn't working (check for errors in the catalina.out log file). The
usual cause of this is trying to run tomcat immediately after installing Java. You
must log out and log in again to ensure the JAVA_HOME environment
variable is set to the correct location.
Uninstalling the
Service
Note the instructions given below are for removing
this software package only. Should you wish to also remove its
pre-requisites, then you must follow the instructions provided with
them.
- Stop Tomcat (and, if you are using it, Apache)
- Next
remove the directory <TOMCAT_HOME>/webapps/gria-client-mgt and the file <TOMCAT_HOME>/webapps/gria-client-mgt.war
which will have been copied when the web application was deployed.
- Delete
the configuration directory, e.g./etc/gria/client-mgt
- Edit <TOMCAT_HOME>/conf/tomcat-users.xml
file and remove the gria_client_mgt_admin
role and user.