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.
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.
MS Windows Server
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_191"
to specify the updated java version
set "JRE_HOME=C:\Program Files\Java\jre1.8.0_211"
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)
3. Start the Apache Tomcat Windows service (see Additional Information below for Details if needed)
Please see 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.