
2.4) Apache "Tomcat" Servlet Container
Package: Apache Tomcat v7.x servlet container
URL: http://tomcat.apache.org/download-70.cgi
Zip: http://www.apache.org/dist/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.zip
Note:
If your version of Linux distribution already comes with a version of Tomcat installed, it is still highly recommended that
you start with a version of Tomcat downloaded directly from the Apache website. This will eliminate or reduce any
permissions or classpath problems that may be encountered. Then when everything is up and working properly, if you
choose to do so, you can go back and install OpenGTS in the version of Apache Tomcat that was shipped/installed with
your Linux distribution.
2.4.a) Linux users installing the downloaded Apache Tomcat:
It is recommended that the manual Tomcat installation be installed in the "/usr/local/" directory ('root'
access will be required to install into this directory).
The CATALINA_HOME environment variable should then be set to the following:
$ export CATALINA_HOME=/usr/local/apache-tomcat-x.xx.xx
Where "/usr/local/apache-tomcat-x.xx.xx" matches the name of the Tomcat installation directory.
It is recommended to also create a "tomcat" symbolic link in the "/usr/local/" directory which points to the
Tomcat installation, as follows:
# cd /usr/local
# ln -s $CATALINA_HOME tomcat
Within the Tomcat installation 'bin' directory (ie. "$CATALINA_HOME/bin"), make sure the execute
permissions bit is set on all ".sh" files. If not set, the following command will set the execution bit:
$ cd $CATALINA_HOME/bin
$ chmod a+x *.sh
If the execute bit is not set on these files, Tomcat "startup.sh" and "shutdown.sh" commands may not be
able to execute.
2.4.b) Debian/Ubuntu users using a pre-installed Apache Tomcat:
We recommend downloading the Tomcat version directly from Apache, however, if you still plan on using the
Debian/Ubuntu installed version of Tomcat, and your Tomcat log files are filling up with
"java.security.AccessControlException" messages when attempting to access System properties, then you
may need to create/edit a Tomcat policy file in the "/etc/tomcat6/policy.d" directory that contains the
following information (or similar):
grant codeBase "file:${catalina.home}/webapps/track/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
grant codeBase "file:${catalina.home}/webapps/events/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
grant codeBase "file:${catalina.home}/webapps/mologogo/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
Make sure the above values are appropriate for your installation.
OpenGTS Configuration and Installation Manual Page 9 of 60
Comentários a estes Manuais