3.6 3.5 3.4 3.3
3.6 3.5 3.4 3.3

Upgrading Tomcat to a newer patch version


Introduction

The Apache Tomcat component installed with Cloudpaging Server can be updated to a newer patch version within the same Tomcat release branch. For example, if Cloudpaging Server is installed with Tomcat 9.0.95, it can be upgraded to a later 9.0.x patch version released by Apache.

As Tomcat is installed locally with Cloudpaging Server, the Tomcat component must be upgraded manually on each server running Cloudpaging Server. This article walks through an example upgrade from Tomcat 9.0.95 to Tomcat 9.0.119. When following the steps, replace the example version numbers with the version currently installed in your environment and the version you are upgrading to.

The steps in this article only apply to Cloudpaging Server 9.6 and above.

  • Customers can complete this process internally.

  • It is recommended to upgrade Cloudpaging Server before upgrading Tomcat, as that version will be compatible with the newer versions (e.g., 9.0) of Tomcat.

Obtaining the latest Tomcat Installer

The Tomcat installer can be downloaded from the Apache Tomcat site at https://tomcat.apache.org. From the Binary Distributions section below, select the 32-bit/64-bit Windows Service Installer. (Note: This example uses version 9.0.119. This version may differ as newer 9.0.x patch versions are released.)

image-20260626-193112.png

After downloading the installer, validate the file hash before proceeding.

Removing the Tomcat9 service

:warning:

The Tomcat upgrade should be performed on one server at a time to prevent service interruption.

First, remove the default Tomcat service so it does not conflict with the service installed during the newer Tomcat installation.

  1. Open an elevated command prompt.

  2. Depending on your version, navigate to the Tomcat9.exe directory:  

    cd "C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.XX\bin\"
    
  3. Enter the following command to remove the Tomcat service: 

    Tomcat9.exe //DS//Tomcat9
    
  4. Open services.msc and verify the default Apache Tomcat9 service is no longer present.

  5. Close the command prompt.

The default Tomcat service is installed during the Tomcat installation. If a pre-existing Tomcat service is installed, then the new Tomcat service cannot be installed, and the install will fail. The service needs to be uninstalled before running the installer. Cloudpaging Server does not use this service, and it can safely be removed if not used elsewhere.

Installing Tomcat 9.0.x

Follow the steps below to install Tomcat using the installer.

  1. Run the downloaded installer

  2. Accept the EULA

  3. At the Choose Components screen, Uncheck everything but the Tomcat Core component, as in the screenshot below

    image-20220202-210032.png


  4. Keep the default values and click Next > at the Configuration screen.

    image-20260626-194557.png


  5. At the Java Virtual Machine screen, enter the following path:

    1. If on Cloudpaging 9.5.X and above, the file path will look something like this:
      C:\Program Files (x86)\Eclipse Adoptium\jre-11.0.24.8-hotspot\

      image-20260626-194757.png


  6. When asked to choose the install location, enter C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.XX and click Install. (In this example, we are installing tomcat-9.0.119)

    image-20260626-195031.png


  7. At the Completing Apache Tomcat Setup screen, uncheck Run Apache Tomcat and click Finish

    image-20260626-195516.png


Updating the Cloudpaging Server Configuration

Once Tomcat 9.0.x has been installed, the Cloudpaging Server configuration must be updated to use the new Tomcat version. 

  1. Open the Registry Editor (regedit.exe) and navigate to the following registry key: 
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\JukeboxServer\Parameters\Java

  2. Edit the following registry value:

    • Value Name: Classpath

    • Value Type: REG_SZ

    • Value Data:  Modify any mentions of the path for the Tomcat install to reflect the new path.
      (Example: C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.119\bin\bootstrap.jar;C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.119\bin\tomcat-juli.jar;C:\Program Files (x86)\Numecent\Application Jukebox Server\mssql-jdbc-9.4.1.jre11.jar

      Note: Classpath contains two path mentions for Tomcat

      image-20260626-200109.png
    • Once edited, go to File → Export and save the Classpath registry key to the desktop.

  3. Edit the following registry value:

    • Value Name: Options

    • Value Type: REG_MULTI_SZ

    • Value Data: Modify the -Dcatalina.home line to reflect the new Tomcat install path
      (Example: -Dcatalina.home=C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.119\)

    • Once edited, go to File → Export and save the Options registry key to the desktop.

  4. Then, navigate to the following registry key and edit the value below: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JukeboxServer

    • Value Name: ImagePath

    • Value Type: REG_EXPAND_SZ

    • Value Data: Modify the path to Tomcat to reflect the new location
      (Example: "C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.119\bin\tomcat9.exe" //RS//JukeboxServer)

      image-20260626-201341.png


    • Once edited, go to File → Export and save the ImagePath registry key to the desktop.


  5. Restart the Cloudpaging Server service by using the Services MMC

  6. Copy the Classpath, Options, and ImagePath registry keys from the Desktop to the remaining Cloudpaging Servers.

  7. Repeat the Removing the Tomcat9 service and Installing Tomcat 9.0.x steps above on the remaining Cloudpaging Servers.

  8. Import the Classpath, Options, and ImagePath registry keys on the remaining Cloudpaging Servers.

  9. Restart the Cloudpaging Server service by using the Services MMC on the remaining Cloudpaging Servers.

Verification

  1. Go to C:\Program Files (x86)\Numecent\Application Jukebox Server\core\logs on the Cloudpaging Server and open the core_service.log

  2. Check the following line logs the new version installed:

    1. Configuration: catalina.home: C:\Program Files (x86)\Apache Software Foundation\tomcat-<version> e.g. 9.0.119

    2. image-20260626-204710.png
  3. Check that https://localhost/jukeboxserver allows login

  4. Check that local services are running.

  5. Remove the old Tomcat install directory e.g. C:\Program Files (x86)\Apache Software Foundation\tomcat-9.0.95