Bug 63285

Summary: service.bat does not handle changed "Windows Service Name" defined during Tomcat Windows Installation
Product: Tomcat 8 Reporter: bk
Component: PackagingAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.5.39   
Target Milestone: ----   
Hardware: PC   
OS: All   

Description bk 2019-03-25 10:46:02 UTC
Pleas enable service.bat to deal with a changed "Windows Service Name" defined during Tomcat Windows Installation.

During the Apache Tomcat 8 Setup You can define on the "Configuration Options" page a "Windows Service Name". If you change the default "Tomcat8" this results not only in a changed installation folder and a changed Windows Service Name, but also to renamed files bin/Tomcat8.exe and bin/Tomcat8w.exe ('Windows service wrapper executables').

The proposed changes of Pull Request 139 https://github.com/apache/tomcat/pull/139 deal with such a renamed Windows service wrapper executables by using the provided parameter name for the service name. Note that the parameter is no longer optional then!

Another solution would be to change the Windows installer (NSI) and do not rename the bin/Tomcat@VERSION_MAJOR@.exe and bin/Tomcat@VERSION_MAJOR@w.exe during installation.
Comment 1 Mark Thomas 2019-08-08 12:41:59 UTC
Fixed in:
- master for 9.0.23 onwards
- 8.5.x for 8.5.44 onwards
- 7.0.x for 7.0.97 onwards