Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DTPDEVEL and version 2022.2

DTP ships with a fixed instance of Tomcat server that is used to run the applications included with DTP. Refer to the release notes for information about any Tomcat upgrades associated with each release. The following instructions are intended to provide guidance The version of Tomcat that ships with DTP is the only one that has been verified to work with it, but if you need to upgrade the Tomcat server shipped with DTP and cannot wait until for the next DTP release. The example instructions below pertain to the following specific upgrade scenario, but the same general process can be used for subsequent versions of DTP and Tomcat:

...

, the following instructions are provided as guidance. This should be done to upgrade Tomcat only; do not attempt to downgrade Tomcat. The procedure below has some Linux-specific details, but it applies generally to any OS.

Note

...

We cannot verify that

...

any

...

given version

...

of DTP will function as expected

...

with any version of Tomcat other than the one with which it was shipped. This procedure is provided for reference only; upgrading your Tomcat server on your own is not recommended.

To upgrade your Tomcat server:

  1. Stop DTP Server, Data Collector, and Enterprise Pack. See Stopping DTP Services.
  2. Download the Tomcat version to which you wish to upgrade (for example, apache-tomcat-9.0.41<VERSION>.tar.gz) to download_dir and unarchive the .gz filegz file:

    Code Block
    languagebash
    themeMidnight
    tar -xvzf apache-tomcat-9<VERSION>.0.41.tar.gz
  3. Rename the directory to tomcat:

    Code Block
    languagebash
    themeMidnight
    mv apache-tomcat-9.0.41<VERSION> tomcat
  4. Delete web apps shipped with tomcat:

    Code Block
    languagebash
    themeMidnight
    cd tomcat/webapps
    rm -rf *
  5. Make copies of the following configuration files and save them outside <DTP_INSTALL>:

    • <DTP_INSTALL>/tomcat/conf/server.xml

    • <DTP_INSTALL>/tomcat/conf/catalina.properties

    • (Optional) Your keystore file if you are using a file other than the .keystore file shipped with DTP in the <DTP_INSTALL>/tomcat/conf/ directory

  6. Copy the new tomcat (9.0.41) directory into the <DTP directory into the <DTP_INSTALL> directory. This will upgrade Tomcat shipped with DTP:

    Code Block
    languagebash
    themeMidnight
    cp -rfv download_dir/tomcat/ <DTP_INSTALL>/ > cp.txt
  7. Verify that copy command has executed successfully by checking the cp.txt file

  8. Remove the existing ecj-4.15<VERSION>.jar library that is no longer needed:

    Code Block
    languagebash
    themeMidnight
    rm <DTP_INSTALL>/tomcat/lib/ecj-4.15<VERSION>.jar
  9. Copy the configuration files you saved from the original <DTP_INSTALL>/tomcat/conf/ directory (step 5) into the <DTP_INSTALL>/tomcat/conf/:

    Code Block
    languagebash
    themeMidnight
    cp server.xml <DTP_INSTALL>/tomcat/conf/
    cp catalina.properties <DTP_INSTALL>/tomcat/conf/
    cp <YOUR_KEYSTORE_FILE> <DTP_INSTALL>/tomcat/conf/.keystore 
  10. Start DTP Server, Data Collector, and Enterprise Pack. See Starting DTP Applications.