How to install the AS

From GEANT2-JRA1 Wiki

Contents

Installing the AS

Installing the .tar.gz file

Execute the following commands in $PERFSONAR/ant directory:

  • Install the service into the Tomcat
ant -q lib
ant -q pre-install
ant -q configure
ant -q jar
ant -q deploy

Installing the RPM file

The installation of the AS using RPMs is really easy. First, you need to download the following RPMs dependencies:

Then, you can install using the rpm command-line:

 rpm -Uvh perfsonar-tomcat-*.rpm geant2_java-as-*.rpm

Installing the WAR file

The installation of the AS using WAR is really easy. You only have to copy the .war file into your webapps folder (for example /home/perfsonar/webapps/). Then, Tomcat will start the deployment of the service.

Warning: after the deployment, if you remove the .war file Tomcat will remove the deployed service.

After the installation

You have to manually set some libraries as endorsed. The steps for this are:

  • Make a directory 'endorsed' inside your TOMCAT directory home. Ex.: /home/perfsonar/apache-tomcat/endorsed/
  • Copy into that folder the following jar files that you can find at /home/perfsonar/webapps/WEB-INF/lib/ :
    • xalan-2.7.0.jar
    • xalan-serializer-2.7.0.jar
    • xercesImpl-2.8.0.jar
    • xerces-xml-apis-2.8.0.jar
  • Modify the CATALINA_OPTS in the running scripts catalina.sh and catalina.bat in this way:
#   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
#                   "stop", or "run" command is executed.
CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/endorsed

After setting up the variable (re)start the Tomcat.

Personal tools