After updating Apache Tomcat for JasperReports 7.9 the servicerun.bat file is not working as intended.
The name for the new Apache Tomcat is different from the original Tomcat referenced by servicerun.bat
The following lines are seen in servicerun.bat:
if exist "F:\APPSCA\JASPER~1\JASPER~1.0\apache-tomcat\scripts\servicerun.bat" (start "" /MIN "F:\APPSCA\JASPER~1\JASPER~1.0\apache-tomcat\scripts\servicerun.bat" START)
if exist "F:\APPSCA\JASPER~1\JASPER~1.0\apache-tomcat\scripts\servicerun.bat" (start "" /MIN /WAIT "F:\APPSCA\JASPER~1\JASPER~1.0\apache-tomcat\scripts\servicerun.bat" STOP)
The new folder is named apache-tomcat9.
These lines are now incorrect after the upgrade as the folder for the new version of Apache Tomcat is different
There are two instances of servicerun.bat.
located in $ROOT_FOLDER\jasperreports-server-7.9.0
Note: $ROOT_FOLDER refers to the folder where JasperReports is installed
This calls a 2nd instance with the same name at:
$ROOT_FOLDER\jasperreports-server-7.9.0\apache-tomcat9\scripts.
Release: 17.3 or higher
Component: CA Service Desk Manager
JasperReports 7.9
There are two instances of servicerun.bat.
located in $ROOT_FOLDER\jasperreports-server-7.9.0
This calls a 2nd instance with the same name at:
$ROOT_FOLDER\jasperreports-server-7.9.0\apache-tomcat9\scripts.
There was no scripts in tomcat9, so I copied it from the previous tomcat folder and modified the servicerun.bat accordingly with the new net service name.
You will need to update the following files:
servicerun.bat at the root of the jasper install folder
the instance at scripts within tomcat9
Ensure the files service.bat references is pointing to the proper location of Apache Tomcat