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

Default suggested paths in DB Upgrade Tool 2.0.1 in Liferay DXP 7.1 SP1 Tomcat bundle

    Details

    • Story Points:
      0.25
    • Fix Priority:
      2

      Description

      Issue
      DB Upgrade Tool 2.0.1 is bundled with the DXP 7.1 SP1 bundle, but the default paths that are suggested don't match up with the environment variables that are present in the bundle itself.

      For example, the DXP 7.1 SP1 bundle comes with Tomcat 9.0.6 and the Tomcat home is ../liferay-dxp-7.1.10.1-sp1/tomcat-9.0.6, but the DB Upgrade Tool suggests ../liferay-dxp-7.1.10.1-sp1/tomcat-9.0.10 by default. If a user goes through this process without checking the path, it results with a Exception in thread "main" java.lang.ClassNotFoundException: com.liferay.portal.tools.DBUpgrader which is a bit confusing.

      Steps to Reproduce
      1. Obtain liferay-dxp-tomcat-7.1.10.1-sp1-20190110085705206.zip
      2. Extract the ZIP file
      3. Go to ../liferay-dxp-7.1.10.1-sp1/tools/portal-tools-db-upgrade-client
      4. Run java -jar com.liferay.portal.tools.db.upgrade.client.jar or db_upgrade.sh (db_upgrade.bat on Windows)
      5. Go through the wizard, and hit Enter when you see the prompt for
      Please enter your application server (tomcat):
      6. Notice the next line that appears

      Actual Result
      The default path does not correspond to the actual version of Tomcat that is in the bundle:
      Please enter your application server directory (/Users/Liferay/bundles/liferay-dxp-7.1.10.1-sp1/tomcat-9.0.10):

      Expected Result
      The default path corresponds to the actual version of Tomcat that is in the bundle:
      Please enter your application server directory (/Users/Liferay/bundles/liferay-dxp-7.1.10.1-sp1/tomcat-9.0.6):

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                brian.suh Brian Suh
                Participants of an Issue:
                Recent user:
                Brian Suh
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  21 weeks, 2 days ago

                  Packages

                  Version Package