Legacy Knowledge Base
Published Sep. 10, 2025

Upgrade Tool Uses Wrong Version of Tomcat

Written By

Michael Warren Young

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When upgrading to Liferay DXP 7.0 or DXP 7.1 and using the SP1 + Tomcat bundle, the wrong version of Tomcat is suggested by the Upgrade Tool
  • For 7.1 the bundle includes Tomcat 9.0.6, but the Upgrade Tool is configured to recommend version 9.0.10
  • For 7.0 the bundle includes Tomcat 8.0.53. Also a "/tools/" is added at the end of the path.
  • If the user uses the suggested version and path, the upgrade will fail with this error:
    Exception in thread "main" java.lang.ClassNotFoundException: com.liferay.portal.tools.DBUpgrader 

    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 

    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 

    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 

    at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:43)

Environment

  • Upgrade tool 2.0.1
  • Liferay DXP 7.0 on a Tomcat Bundle
  • Liferay DXP 7.1 SP1 + Tomcat Bundle
  • 2023.Q3.1 bundle with the upgrade tool has a similar behavior

Resolution

There are three possible solutions:

  1. When prompted to select the Application Server directory by the Upgrade tool, specify tomcat-9.0.6 or tomcat-8.0.53, instead of using the suggested tomcat 9.0.10.
  2. Also check the paths automatically created and remove the "/tool/" part both on the app-server.properties and the portal-upgrade-ext.properties
  3. For 7.1 the issue will be resolved with the SP2 + Tomcat bundle. Use the Liferay DXP 7.1 GA1 + Tomcat bundle to upgrade and install the latest fix pack.
Did this article resolve your issue ?

Legacy Knowledge Base