2.4.
Installing GRIA on Ubuntu/Debian
Up one level
In order to install Java and Tomcat in your system you need to configure your source.list to include universe and multiverse repositories.
As root edit /etc/apt/sources.list to include universe and multiverse repositories, e.g. sudo vi /etc/apt/sources.list Then make sure your sources.list includes a line similar to the following:
deb http://[xx].archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
where xx is a country code, e.g. gb, us, de, etc. For Debian systems add non-free at the end of your current entry, e.g.
deb http://ftp.uk.debian.org/debian/ etch main non-free
Then update the system repository e.g. sudo apt-get update
Installing Java
Run the following command to install sun-java5-jdk packages: sudo apt-get install sun-java5-jdk
The system will prompt you to accept the DJK license, reply yes. You can test the installed java version in your system executing the following command:
$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
Installing tomcat5
Run the following command to install tomcat5.5 packages:
$ sudo apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps
Edit /etc/default/tomcat5 to:
- define JAVA_HOME, e.g.
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
- replace line TOMCAT_SECURITY=yes with the following:
TOMCAT_SECURITY=no
Edit /var/lib/tomcat5/conf/tomcat-users.xml file to add a manager role, e.g.
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
...
<role rolename="manager"/>
<role username="manager" password="xxxxxx" roles="manager"/>
...
</tomcat-users>
At this point refer to the GRIA documentation e.g. GRIA user guide, Deploying the Services to Tomcat.
NOTE: the default port of the tomcat server page is on 8180 NOT 8080, e.g. http://<servername>:8180
Setting the system clock
In order to provide some synchronisation between the clocks on machines that the various GRIA packages are installed on, it is recommended that you run an NTP client service that will synchronise your system with an Internet time server. On Debian and Ubuntu systems, this can be done using the ntpdate or ntp packages.
If the time difference between the client and server clocks is greater than a few minutes, messages may be rejected.