Axis and Tomcat installation
From GEANT2-JRA1 Wiki
Installing Tomcat and Axis on Linux
A successful installation of Tomcat and Axis has been attempted on both a Gentoo linux distribution and a RedHat.
The installation on Gentoo was pretty straightforward due to the default installation tool of the distribution, the 'emerge' tool which automatically resolves the dependencies that arise during a packet's installation.
First, using the command emerge --search tomcat we find the exact name of the tomcat package which in our case is www-servers/tomcat. Then we issue emerge www-servers/tomcat and the installation takes place, during which emerge will download and install not only tomcat but any other package on which tomcat is based on.
After tomcat is successfuly installed, a initialization script is placed: /etc/init.d/tomcat5. Some minor changes should then be made for tomcat to run. These are described in the Gentoo Wiki. You can start or stop, or restart the tomcat server by issuing /etc/init.d/tomcat start|stop|restart. Then, you should be able to see a tomcat sample page by pointing your browser to http://yourmachine:8080.
Before we install axis, all the necessary packages for java development should be installed. This is done in the same way by issuing emerge --search jdk and emerge --search java and installing with emerge packagename all the relevant packages.
Next, Axis follows. Same way, we issue emerge --search Axis, and then emerge www-servers/axis. After a successful installation, we should be able to see the Axis Happiness page by pointing our browser at http://yourmachine:8080/axis/happyaxis.jsp
We must here note that in the case of the installation of some java packages, because of Sun's licence, the emerge tool cannot directly install them and informs us that we have to manually download some files and place them on a special directory on our machine in order for emerge to install them.
In the list below, one can find most of the needed packages for Gentoo, in order for Apache and Axis to function, along with the packages needed for java development.
- dev-java/wsdl4j-1.4
- dev-java/jakarta-oro-2.0.8-r1
- dev-java/sun-j2ee-1.3.1-r2
- dev-java/jss-3.4
- dev-java/blackdown-jdk-1.4.2.01-r2
- dev-java/rhino-1.5.5-r1
- dev-java/commons-collections-3.1
- dev-java/ant-1.6.2-r6
- dev-java/commons-net-1.2.2-r1
- dev-java/gnu-crypto-2.0.1
- dev-java/sun-jdk-1.4.2.08
- dev-java/jsch-0.1.18
- dev-java/jdbc2-postgresql-7.3
- dev-java/commons-httpclient-2.0-r1
- dev-java/jdepend-2.8.1
- dev-java/commons-logging-1.0.4
- dev-java/avalon-logkit-bin-1.2.2
- dev-java/commons-discovery-0.2-r2
- dev-java/jzlib-1.0.5
- dev-java/junitperf-1.9.1
- dev-java/xerces-1.3.1
- dev-java/javacup-0.10k
- dev-java/gnu-jaxp-1.0_beta1-r1
- dev-java/antlr-2.7.3
- dev-java/jakarta-regexp-1.3-r2
- dev-java/commons-beanutils-1.6.1-r1
- dev-java/ant-tasks-1.6.2-r5
- dev-java/jta-1.0.1
- dev-java/bsh-2.0_beta1-r1
- dev-java/ant-core-1.6.2-r2
- dev-java/java-config-1.2.11
- dev-java/libreadline-java-0.8.0-r1
- dev-java/sun-jaf-bin-1.0.2
- dev-java/jython-2.1-r5
- dev-java/sun-jre-bin-1.4.2.08
- dev-java/castor-0.9.5.3
- dev-java/log4j-1.2.8-r1
- dev-java/bsf-2.3.0-r2
- dev-java/ldapsdk-4.1.7-r1
- dev-java/servletapi-2.3-r1
- dev-java/servletapi-2.4-r1
- dev-java/sun-jimi-1.0
- dev-java/adaptx-0.9.13_p20041105
- dev-java/bcel-5.1-r1
- dev-java/xerces-2.6.2-r1
- dev-java/xalan-2.6.0-r2
- dev-java/junit-3.8.1-r1
- dev-lang/python-2.3.4-r1
- dev-lang/perl-5.8.5-r5
- dev-perl/i18n-langtags-0.35
- dev-perl/Locale-gettext-1.01-r1
- dev-python/python-fchksum-1.7.1
- dev-util/yacc-1.9.1-r2
- net-www/apache-2.0.52-r1
- www-servers/tomcat-5.0.27-r5
- www-servers/axis-1.2_rc2
Axis and Tomcat installation on RedHat linux
While trying to install the packages on RedHat we found out that because of the many depencencies it would be impossible to install all of the packages manually by downloading the rpm files one by one. So, the up2date tool was installed which automatically resolves the dependencies requirement, and installs the appropriate packages.
Added the directory containing the downloaded RPMs to /etc/sysconfig/rhn/sources:
yum redhat-application-server file:///tmp/redhat-application-server
Installed tomcat5 with up2date. Let it try to install everything.
Used rpm to remove the failed packages.
Installed the missing bits by hand.
Installed tomcat5 with up2date again.
Once Tomcat was up, we edited /usr/share/tomcat5/conf/server.xml to get it to listen to external requests and tweaked the ip firewall to let them in.
Because a current Axis package could not be found, we downloaded Axis's sources and extracted them at /var/lib/tomcat5/webapps/axis. Then, we restarted Tomcat in order for it to see the new component.
