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 the new Java environmental variables.
NOTE: The JDK is required for Tomcat 9 and can be used with earlier versions
C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-9.0.91\bin
(for example)JRE_HOME=C:\Program Files\Java\jre1.8.0_191
to
JRE_HOME=C:\Program Files\Java\jre1.8.0_281 (example for Oracle)
JRE_HOME=C:\Program Files\Eclipse Adoptium\jdk-11.0.14.101-hotspot (example for ADOPTIUM)
C:\Program Files\CA\CA_OM_Web_Viewer\apache-tomcat-9.0.91\bin
(for example)service.bat remove
service.bat install
See Error 2 Starting Apache Tomcat as a Service OM Web Viewer for exact instructions on how to uninstall and reinstall Tomcat as a service.
*If running Tomcat 8, use