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

Database Upgrade Client not correctly generating the classpath which can cause missing classes

    Details

      Description

      Reproduced on:
      CentOS
      JDK8
      6.2.3 > master GIT ID: efc9bfe7921636a8bb6f37ddb833691dbec22e47.

      Steps to Reproduce:

      1. Upgrade attached 6.2.3 database to 7.0 to MySQL
      2. Navigate to 7.0 bundle ./tools/portal-tools-db-upgrade-client
      3. Set properties in app-server.properties
        dir=/opt/dev/projects/github/liferay-portal/bundles/tomcat-8.0.32
        global.lib.dir=lib
        portal.dir=webapps/ROOT
        extra.lib.dirs=bin
        
      4. Run upgrade
        java -jar com.liferay.portal.tools.db.upgrade.client.jar

      Expected Result:
      Tool creates a classpath that includes all needed jars to run the upgrade.

      Actual Result:
      Class path is created with classes directory and a jar path incorrectly merged together.

      ...
      /opt/dev/projects/github/liferay-portal/bundles/tomcat-8.0.32/bin/tomcat-juli.jar:
      /opt/dev/projects/github/liferay-portal/bundles/tomcat-8.0.32/webapps/ROOT/WEB-INF/classes/opt/dev/projects/github/liferay-portal/bundles/tomcat-8.0.32/webapps/ROOT/WEB-INF/lib/java-diff.jar:
      /opt/dev/projects/github/liferay-portal/bundles/tomcat-8.0.32/webapps/ROOT/WEB-INF/lib/commons-compress.jar:
      ...
      

      When the tool is run on Linux, the upgrade will sometimes fail due a missing classes because it does not always create the classpath in the same order.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                victor.ware Victor Ware
                Reporter:
                victor.ware Victor Ware
                Participants of an Issue:
                Recent user:
                Alberto Chaparro
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 46 weeks ago

                  Packages

                  Version Package
                  7.0.1 CE GA2