Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Knowledge Base > Upgrading the Tomcat application server (CC employees)

Upgrading the Tomcat application server (CC employees)

Table of contents
No headers

HPE Consumption Analytics Portal 3 shipped with an Apache Tomcat 7.0.35 application server, and HPE Consumption Analytics Portal 4 with Tomcat 7.0.54. If you need to upgrade Tomcat to a newer version, for example due to a security issue with a current version, you can do that without upgrading HPE Consumption Analytics Portal.

To upgrade the Tomcat application server

  1. Stop the application server.
    For instructions, see Stopping and starting the application server.
  2. Remove the application server service from the operating system.
    From a Windows command prompt in the <installDir>/bin directory, run the command ccservice remove.
  3. In the <installDir> directory, rename the existing tomcat directory.
    For example, rename it from apache-tomcat-7.0.35 to apache-tomcat-7.0.35-old.
  4. Create a new directory to replace it, named for the version you will install.
    For example, apache-tomcat-7.0.59. The remaining steps in this procedure use Tomcat 7.0.59 values, but if you are installing a different version simply substitute that version number for 7.0.59 anywhere it appears in these steps.
  5. Download the new version of Tomcat that you want to install and copy the contents of the apache-tomcat-7.0.59 directory from that ZIP file into the directory you created.
  6. In the new apache-tomcat-7.0.59/webapps directory, delete everything.
  7. Copy the contents of the apache-tomcat-7.0.35-old/webapps directory to apache-tomcat-7.0.59/webapps.
  8. Copy the following database driver files from apache-tomcat-7.0.35-old/lib to apache-tomcat-7.0.59/lib:
    • jtds-1.2.6
    • ojdbc6-11.2.0.2.0
    • ora18n-11.2.0.2.0
  9. Copy the apache-tomcat-7.0.35-old/conf/server.xml file to the apache-tomcat-7.0.59/conf directory.
  10. In all files under <installDir> whose contents reference Tomcat, change those references from the old version to 7.0.59.
    The following table lists the required files and the finished state of the lines you must modify.
     
    Path to file under <installDir> Correct version of edited line
    (Windows) bin/ccservice.bat set CATALINA_HOME=%BASEDIR%\apache-tomcat-7.0.59
    (Windows) bin/ccserver.bat set CATALINA_HOME=%BASEDIR%\apache-tomcat-7.0.59
    (Linux) bin/ccserver.sh export CATALINA_HOME=$BASEDIR/apache-tomcat-7.0.59
    (Windows) bin/ccenv.bat set JAVA_OPTS=%JAVA_OPTS% -Dtomcat.directory=apache-tomcat-7.0.59 -Djava.library.path="%REPO%"
    (Linux) bin/ccenv JAVA_OPTS="${JAVA_<wbr/>OPTS} -Dtomcat.directory=apache-<wbr/>tomcat-7.0.59 -Djava.library.path=$REPO"

    On both Windows and Linux, each of the following files needs the two edits in the other column:

    • etc/cclicense.xml
    • etc/ccjob.xml
    • etc/loadreports.xml
    • etc/dataSourceSetup.xml
    • etc/ccexport.xml
    • etc/ccimport.xml
    • etc/ccant.xml
    • etc/ccversion.xml
    • etc/dbsetup.xml
    • etc/ccencrypt.xml
    • etc/ccinstallhelper.xml
    • etc/dbupdate.xml
    • <version>7.0.59</version>
    • <relativePath>tomcat-servlet-api-7.0.59.jar</relativePath>
  11. Install the application server service into the operating system.
    From a Windows command prompt in the <installDir>/bin directory, run the command ccservice install.
  12. Start the application server.
    For instructions, see Stopping and starting the application server.
Last modified

Tags

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP