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

DB upgrade client can't be executed from another directory which doesn't contain the jar

Details

    Description

      Steps to reproduce:

      1. Set up properties for db upgrade client(There are two ways to do this, and both of them should be tested)
      2. cd into a directory which doesn't contain the client's jar
        For example, if the client is in /liferay-home/tools/portal-tools-db-upgrade-client, just cd into /liferay-home
      3. run the client using java -jar /path/to/client.jar
        For example in 1), run "java -jar tools/portal-tools-db-upgrade-client/com.liferay.portal.tools.db.upgrade.client.jar"

      Expected:

      The upgrade runs well

      Actual:

      The upgrade can't run due to class not found

       

      Two ways to set up properties for DB Upgrade Client:

      1) Set properties on console

          a. Execute com.liferay.portal.tools.db.upgrade.client.jar directly, and follow the prompt to set up properties

      2) Modify *.properties to set properties

          a. Modify *.properties files in same folder as com.liferay.portal.tools.db.upgrade.client.jar

          b. "dir" in app-server.properties and "liferay.home" in portal-upgrade-ext.properties are relative path to where current folder is, you can also set absolute path to these two properties.

       

      Attachments

        Issue Links

          Activity

            People

              sylvia.luan Sylvia Luan
              dante.wang Dante Wang
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 4 weeks, 4 days ago

                Packages

                  Version Package
                  7.0.X EE
                  7.1.X
                  Master