CA Web Viewer Tomcat Windows Service fails after Java Upgrade

Document ID : KB000040191
Last Modified Date : 09/04/2019
Show Technical Document Details

After a Java upgrade, Tomcat service does not start and the System event log shows service-specific error code 1.
NOTE: Tomcat is running as a service.


Apache Tomcat
MS Windows Server
After the Java upgrade, the catalina.bat file was not set to the correct Java version and the Tomcat service needed to be uninstalled and reinstalled to pick up that change.

1. Change catalina.bat in directory

C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-8.5.32\bin from the former java version   (for example- customize for your environment)

Change this line:
   set "JRE_HOME=C:\Program Files\Java\jre1.8.0_66" 
 to specify the updated java version 
   set "JRE_HOME=C:\Program Files\Java\jre1.8.0_191"
NOTE: If you are using the JDK instead of the JRE, modify the set command to point to the new JDK.

2.  From folder C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-8.5.32\bin   (for example)

  • run service.bat uninstall
  • run service.bat install
3. Start the Apache Tomcat Windows service
Additional Information:
Please see KB000032916​ Error #2 trying to start Apache Tomcat as a service with CA Output Management Web Viewer for Windows for exact instructions on how to uninstall and reinstall Tomcat as a service.