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

Running DB Upgrade Tool 2.0.1 Script results in Error: Unable to access jarfile com.liferay.portal.tools.db.upgrade.client.jar

    Details

    • Story Points:
      0.25
    • Fix Priority:
      2

      Description

      Issue
      If I download com.liferay.portal.tools.db.upgrade.client-2.0.1.zip from Help Center's Download section, and try to execute db_upgrade.sh, I receive the following error:

      $ ./db_upgrade.sh
      Error: Unable to access jarfile com.liferay.portal.tools.db.upgrade.client.jar

      The script should be updated to include a reference to com.liferay.portal.tools.db.upgrade.client-2.0.1.jar not com.liferay.portal.tools.db.upgrade.client.jar.

      The same issue seems to be apparent in the batch script, as it makes a reference to the old JAR.

      Steps to Reproduce
      1. Grab com.liferay.portal.tools.db.upgrade.client-2.0.1.zip from Help Center's Download
      2. Extract it to a 7.1 instance's tools folder
      3. Go into the lib directory
      4. Run ./db_upgrade.sh or db_upgrade.bat

      Actual Behavior

      $ ./db_upgrade.sh
      Error: Unable to access jarfile com.liferay.portal.tools.db.upgrade.client.jar

      Expected Behavior
      db_upgrade scripts can find the updated JAR file.

      This can be alleviated by adding an asterisk after client in the shell script:

      java -jar com.liferay.portal.tools.db.upgrade.client*.jar "$@"

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  12 weeks, 3 days ago