Versions Compared

Key

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

...

  1. Stop License Server.
  2. Download the Tomcat version to which you wish to upgrade (for example, apache-tomcat-<VERSION>.tar.gz) to download<DOWNLOAD_dir DIR> and unarchive the .gz file:

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

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

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

    • server.xml in <LSS_INSTALL>/app/tomcat/conf/server.xml

    • catalina.properties in <LSS_INSTALL>/app/tomcat/conf/catalina.properties

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

  6. Copy the new tomcat directory into the <LSS_INSTALL>/app directory. This will upgrade Tomcat shipped with License Server:

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

  8. If there are multiple versions of ecj-<VERSION>.jar libraries, remove the existing ecj-<VERSION>.jar library that is no longer needed:

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

    Code Block
    languagebash
    themeMidnight
    cp server.xml <LSS_INSTALL>/app/tomcat/conf/
    cp catalina.properties <LSS_INSTALL>/app/tomcat/conf/
    cp <YOUR_KEYSTORE_FILE> <LSS_INSTALL>/app/tomcat/conf/.keystore 
  10. Start License Server.