Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-90964

Upgrade Tool on Liferay DXP 7.1.10.1 SP1 Tomcat Bundle throw java.lang.ClassNotFoundException: com.liferay.portal.tools.DBUpgrader

    Details

      Description

      Issue
      When I try to run db_upgrade.sh in the Liferay DXP 7.1.10.1 SP1 Tomcat bundle, I encounter a java.lang.ClassNotFoundException: com.liferay.portal.tools.DBUpgrader error which prevents me from advancing further.

      liferay:portal-tools-db-upgrade-client liferay$ java -version
      java version "1.8.0_77"
      Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
      Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

      Steps to Reproduce
      1. Grab and extract liferay-dxp-tomcat-7.1.10.1-sp1-20190110085705206.zip
      2. Go to LIFERAY.HOME/tools/portal-tools-db-upgrade-client
      3. Execute db_upgrade.sh

      Actual Results

      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)

      Expected Results
      DB Upgrade Tool launches without any errors.

      Reproduced in

      • liferay-dxp-tomcat-7.1.10.1-sp1-20190110085705206.zip package

      Not reproduced in
      Liferay DXP 7.1 GA1 Tomcat bundle

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  22 weeks, 5 days ago

                  Packages

                  Version Package