KB Article #183072

Setting up Tomcat 9 for Automator WebUI

Problem

How to setup Tomcat on Windows to avoid the Web UI displaying no data

Resolution

Assuming that:

  • OpenJdk 8 is installed in Tomcat 9 is unarchived in C:\Program Files\Eclipse Adoptium\jre-8.0.392.8-hotspot
  • Tomcat 9 is unarchived in C:\Axway\apache-tomcat-9.0.85
  • A Tomcat9 service exists named: Tomcat9

Open and run a command prompt as an administrator, then:

  1. Create a WebUI directory
    mkdir C:\Axway\Automator\WebUI
  2. Change directory to the bin directory of the apache-tomcat-9.0.85 instance we installed
  3. cd /d D:\Axway\apache-tomcat-9.0.85

  4. Delete the Service Tomcat9
  5. tomcat9 //DS//Tomcat9

  6. Recreate the service.
    Check where the OpenJdk 8 was installed, It should be the default location:
  7. set JAVA_HOME=C:\Program Files\Eclipse Adoptium\jre-8.0.392.8-hotspot
    service install axw-automator-tomcat9-8080

    You should get a display such as:

    Installing the service 'axw-automator-tomcat9-8080' ...
    Using CATALINA_HOME: "C:\Axway\apache-tomcat-9.0.85"
    Using CATALINA_BASE: "C:\Axway\apache-tomcat-9.0.85"
    Using JAVA_HOME: "C:\Program Files\Eclipse Adoptium\jre-8.0.392.8-hotspot"
    Using JRE_HOME: "C:\Program Files\Eclipse Adoptium\jre-8.0.392.8-hotspot"
    Using JVM: "C:\Program Files\Eclipse Adoptium\jre-8.0.392.8-hotspot\bin\server\jvm.dll"
    The service 'axw-automator-Tomcat9-8080' has been installed.

  8. Then update some of the service default settings:
  9. tomcat9 //US//axw-automator-tomcat9-8080 --Description="Apache Tomcat Server For Axway Autoamtor webUI"
    tomcat9 //US//axw-automator-tomcat9-8080 -- Startup=auto
    tomcat9 //US//axw-automator-tomcat9-8080 ++Environment TZ=CET#AXWAY_AUTOMATOR_NEW_UI_HOME=C:\Axway\Automator\WebUI

  10. Restart the service
  11. sc start axw-automator-Tomcat9-8080

    Connect to the Automator's WebUI and check there are directories and files created in the subdirectory tree C:\Axway\Automator\WebUI