Tomcat Upgrade in Place

This page provides instructions for upgrading a FlexDeploy installation to the latest version.

Upgrade Instructions

  1. Stop the Tomcat server. Use shutdown.sh on Linux and shutdown.bat on Windows.

  2. Backup the FlexDeploy schemas and Artifact Repository. In case you need to back out FlexDeploy, you can use these backup data.

    For back-out purposes, it is highly recommended that a database backup of the Oracle database be taken using standard tools like RMAN. Another option would be to export the FD, FD_ADMIN, and FF schemas using data pump. The schemas can be exported using the following data pump command:

    Backup Database

    expdp system directory=DATA_PUMP_DIR dumpfile=fd_bkup.dmp schemas=FD,FF,FD_ADMIN
    If this database is exclusively used for just FlexDeploy application, you can rely on Database backup and recovery processes (RMAN)
    instead of export data procedure.

    It is recommended that a backup of the artifact repository file system be taken in case a back-out is required. The location of the artifact repository can be identified by looking at value of -Dflexagon.fd.repository.root in setenv.sh or setenv.bat file. This file will be in <FlexDeploy Home>/apache-tomcat-flexdeploy/bin/. Standard file backup procedures can be followed. Optionally, the following command (unix only) can be used to create a tar file backup of the entire directory.

    Backup Artifact Repository

    tar –cvzf artifact.tar.gz <artifact repository location>
  3. Upgrade the FlexDeploy schemas

    From the downloaded distribution, extract the /database/upgrade folder.  This folder includes a number of migration*.sql files which upgrade the FlexDeploy schemas along with Patch Release SQL files. You will need to execute these scripts from the version of FlexDeploy you currently have, up to the latest version. And they must be executed in that order.  For example, if you are upgrading from FlexDeploy 3.7.1 to FlexDeploy 4.0.3, you will need to execute migration3.7.1_to_4.0.0.sql, then migration4.0.0_to_4.0.1.sql, then migration4.0.1_to_4.0.2.sql, and finally, migration4.0.2_to_4.0.3.sql. The migration4.0.2_to_4.0.3.sql file includes all of the 403PatchRelease*.sql files in it. Patch Release SQL files are only necessary if you are already on previous 4.0.3 Patch Release.

    If you are upgrading from 4.0.2. to 4.0.3, run migration4.0.2_to_4.0.3.sql.

    If you are upgrading from a 4.0.3 Patch Release, follow the date based SQL files in sequence by Date. If you have already a applied specific Patch Release patch then skip it. You can make determination of which Patch Release files to run by looking at Build Time on About window of your FlexDeploy installation. Contact Flexagon support for details if you are not sure. See example below.

    These scripts should be executed as systemsys, or another user which has privileges to create objects in other schemas, performs grants, etc.  You can load and execute these scripts using other tools such as Toad or SQL Developer, but the instructions here are for using the sqlplus client.

    sqlplus

    Oracle sqlus is part of the Oracle Client, and may be executed on any host which has it installed. If the Oracle Client is not installed on the same host as where you are installing FlexDeploy, you can copy the scripts to another host which has it installed.

    To launch sqlplus:

    export ORACLE_HOME=<your Oracle Home directory>
    export ORACLE_SID=<the SID of your database>
    spool migration4.0.3.out #(change for each script execution so logs are preserved)
    $ORACLE_HOME/bin/sqlpus #(login as sys or system when prompted)
    SQL> <<execute scripts as shown above>>

    If running on another host other than the database server, you must update your tnsnames file and and launch sqlplus as follows:

    export ORACLE_HOME=<your Oracle Home directory>
    export ORACLE_SID=<the SID of your database>
    spool migration4.0.3.out #(change for each script execution so logs are preserved)
    $ORACLE_HOME/bin/sqlpus system@<tnsname>
    SQL> <<execute scripts as shown above>>

    For example,



  4. From the FlexDeploy Tomcat distribution, copy /apache-tomcat-flexdeploy/webapps/flexdeploy.war into <TOMCAT_HOME>/webapps (overwrite existing file).

  5. If using the Salesforce integration, from the FlexDeploy Tomcat distribution, copy /apache-tomcat-flexdeploy/lib/ant-salesforce.jar into <TOMCAT_HOME>/lib

  6. If using IBM ClearCase, you will need to copy some jar files from your ClearCase server to the FlexDeploy installation
    1. Copy all of the jar files found in the com.ibm.rational.teamapi_8.0.1.vxxx folder of your ClearCase server to <FlexDeploy Home>/apache-tomcat-flexdeploy/lib.

  7. Copy plugins from download zip to plugins folder as shown below. This will make sure that plugins are automatically uploaded on Server startup, you will still need to activate them in later step.

    This is useful when you are upgrading FlexDeploy, as there may be many new plugins or versions available as part of new FlexDeploy release.

    • Locate flexagon.fd.install.root folder for your FlexDeploy installation, which is FlexDeploy working directory. This is specified on Java command line. For example, -Dflexagon.fd.install.root=c:/temp/flexdeploy/application.
    • Create plugins folder, if it does not exist under this folder.
    • Copy plugins from download zip's plugins folder and to plugins folder under FlexDeploy working directory.

  8. Start tomcat by running the following script
    1. <TOMCAT_HOME>/bin/startup.sh (startup.bat on Windows)

  9. Launch FlexDeploy in your browser - http://<hostname>:<port>/flexdeploy

  10. You should activate newer versions of the Plugins by clicking Activate button as explained below.

    1. Make sure there are no plugin jar files left in folder where you copied new plugin jar files as part step 7 above. It may take few minutes for all plugins to load. If there are still plugin jar files after 10 minutes, please look at logs and contact Flexagon support or upload plugins using Upload button on plugins page.
    2. Go to Administration - Plugins.
    3. You will see newly uploaded plugins on top. Refer to Installed On date.
    4. Activate each new plugin version one at a time. In future versions, plugins will automatically be activated.
The following macros are not currently supported in the footer:
  • style