OM Web Viewer 12.1: Removing and installing Apache Tomcat® services
search cancel

OM Web Viewer 12.1: Removing and installing Apache Tomcat® services

book

Article ID: 193761

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

Provide information about removing the previous Apache Tomcat® service then installing the new Apache Tomcat® service.

Environment

  • Output Management Web Viewer 12.1
  • Apache Tomcat®
  • Microsoft Windows Server

Cause

JDK was installed and the service.bat was expecting JRE installation.

Resolution

Note this example uses Tomcat8 and Tomcat9 - substitute your versions if needed.  This article only provides information about removing and installing a Tomcat service, not upgrading.

  1. Make sure JRE_HOME or JDK_HOME is set correctly
  2. Go to Services App
  3. Right Click on the previous Apache Tomcat® and the properties box will come up   (for example Tomcat 8.5)
  4. Copy the Service name for use in the command below (It may be different for you if so use your Apache Tomcat® name and version)

  1. Run the Command Prompt as administrator
  2. Go to the C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-8.5.4\bin directory
  3. Type

service.bat remove Tomcat8forCAOMWebViewer12

  1. Type Enter
  2. Go to the C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-9.0.54\bin directory
  3. Type
    service.bat install (NOTE: you do not need the service name)
  4. Type Enter
  5. Leave the command prompt box
  6. Go to Control Panel->All Control Panel Items->Administrative Tools->Services
  7. Right Click on Apache Tomcat® and the properties box will come up
  8. Click on the down arrow next to Startup Type and select automatic
  9. Click on Start under Service Startup
  10. Click Apply, OK

Additional Information

Additional Troubleshooting information for newer JDK - The JAVA_HOME environment variable is not defined correctly.

service.bat file must also have the correct path for JAVA_HOME and JRE_HOME in order to find jvm.dll

This was resolved by copying over the new service.bat from the recent installation.