Tomcat Installation
Tomcat Install/Upgrade with ConnectALL Installer
The option to install Tomcat is available with the ConnectALL installer. However, should you choose to install Tomcat separately, here is a checklist and procedure that summarizes the tasks that you must perform before and after the installation.
The Tomcat version should support Java 8
Check if the Tomcat installation has the “ConnectAll” folder inside the <TOMCAT_HOME>/conf directory
If the folder mentioned in the above step is present, then proceed
Before the upgrade, take a backup of the <TOMCAT_HOME>/conf/ConnectAll directory
After the upgrade, check if the <TOMCAT_HOME>/conf/ConnectAll folder exists. If it doesn’t, copy the folder from the backup location to the <TOMCAT_HOME>/conf directory.
Change the property, 'shared.loader' in the <TOMCAT_HOME>/conf/catalina.properies file to shared.loader="${catalina.base}/conf
For Linux, change the permission and ownership. To change and update,
Permission for the Tomcat folders — Execute the below command
chmod -R 755 <TOMCAT_FOLDER>
Ownership for the Tomcat folders — Execute the below command
chown -R tomcat:connectall <TOMCAT_FOLDER>
Tomcat Service Upgrade
If there is a difference between the latest version of Tomcat and the existing version, the Tomcat service has to be updated. To update, do the following procedure.
Windows
Open the command prompt in the administrator mode
Execute the below command to delete the existing service
sc delete <Tomcat_service_name>
Navigate to the <TOMCAT_LATEST_FOLDER>\bin folder
Execute the below command to install the service with the name CATomcat
service.bat install CATomcat
Use the below command to update the Tomcat service display name and the startup properties to automatically start the service after the restart of the system
<Tomcatversion.exe> //US//CATomcat --Startup="auto" --DisplayName="ApacheCATomcat" --Description="APACHE_TOMCAT ConnectAll Component"
Tomcatversion.exe – This will vary based on the Tomcat version. For example, in Tomcat version 7, it will be Tomcat7.exe and in Tomcat version 8, it will be Tomcat8.exe.
Update the Tomcat service using the below command to run as local system to avoid permission issues
sc config CATomcat obj= LocalSystem
Linux
If the location of the latest Tomcat installation is different, then, update it with the latest location. To update,
Open the file /etc/init.d/tomcat
Update the value of the variable “tomcat_home” with the latest Tomcat location