Application Manager Fails to Start After Upgrade: Troubleshooting Tomcat Upgrade Issues

Application Manager Fails to Start After Upgrade: Troubleshooting Tomcat Upgrade Issues

If Applications Manager fails to start after an upgrade, the issue may be related to an incomplete or failed Tomcat upgrade process.
This guide provides step-by-step instructions to help you identify the root cause and restore functionality.

Troubleshooting Steps

Check whether the Tomcat directories contain the required files. Navigate to the following paths under your Applications Manager installation directory:

Info
ApplicationsManager/working/apache/tomcat/bin
ApplicationsManager/working/apache/tomcat/conf
ApplicationsManager/working/apache/tomcat/lib
The Tomcat upgrade rename process has failed if any folders are empty.

Resolution Steps

Follow the steps below to fix the Tomcat upgrade issue.

Step 1: Check for tomcat_9_new Folder

  1. Navigate to ApplicationsManager/working/apache/
  2. If a folder named tomcat_9_new exists, delete it.

Step 2: Rename the Existing Tomcat Folder

Rename the current Tomcat directory to include its version details before the upgrade.
Info
For example:
ApplicationsManager/working/apache/tomcat → tomcat_old_9_16861
This helps preserve a backup of the previous version.

Step 3: Download and Extract the Correct Tomcat Version

Download the correct Tomcat ZIP file based on your Applications Manager (APM) version:
  1. From APM version 170000 to 172400 → tomcat_9_0_84
  2. From APM version 172500 to 176500 → tomcat_9_0_91
  3. From APM version 176600 and above → tomcat_0_106
After downloading:
  1. Extract the ZIP file.
  2. Copy the extracted Tomcat folder to ApplicationsManager/working/apache/

Step 4: Copy the Keystore File

If available, copy the appmanager.keystore file from the old Tomcat directory to the new one.
Info
For example:
ApplicationsManager/working/apache/tomcat_old_9_16861/ → ApplicationsManager/working/apache/tomcat/

Step 5 (Optional): Update server.xml with Keystore and Truststore Paths

  1. Open the backup server.xml file located at ApplicationsManager/working/apache/tomcat_old_9_16861/conf/backup/server.xml
  2. Locate the <Connector> elements where SSLEnabled="true" is set. 
  3. InfoFor example: <Connector SSLEnabled="true" URIEncoding="UTF-8" port="SERVER_AGENT_PORT" protocol="com.manageengine.appmanager.tomcatagent.http11.EncryptedHttp11NioProtocol" keystoreFile="KEYSTORE_FILE" sslEnabledProtocols="TLSv1.3+TLSv1.2" useServerCipherSuitesOrder="true"/>
  4. Note the keystoreFile and truststoreFile paths, if present.
  5. Copy these files to the corresponding location in the new Tomcat directory.
  6. Update the new Tomcat’s server.xml file accordingly.

Step 6 (Optional): Set Default TLS Ciphers

Notes
This step applies to:
  1. APM versions below 170000, and
  2. APM version 176600
To update ciphers:
  1. Open ApplicationsManager/working/apache/tomcat/conf/backup/server.xml
  2. Locate all <Connector> elements where SSLEnabled="true" is enabled.
  3. Replace the ciphers attribute with ciphers="TOMCAT_CIPHERS"
  4. InfoFor example: <Connector SSLEnabled="true" URIEncoding="UTF-8" ciphers="TOMCAT_CIPHERS" sslProtocol="TLS" useServerCipherSuitesOrder="true"/>
Notes
Note: Skip this step if you are using a custom cipher configuration.

Once all the steps have been completed, restart the Applications Manager service and verify that the product starts successfully without any errors.

                  New to ADSelfService Plus?