Problem description - I have a Java Spring Boot application that I converted to a Windows service using Advanced Installer. When I attempt to start the Windows service using the Windows Service Control Manager (SCM) or sc.exe on a Windows 2012 server, I get the error, "The service did not respond to the start or control request in a timely fashion.” error. However, the logs created by the service indicate that it started. Also, I can execute the service executable created by Advanced Installer manually and the java application starts without any issues.
How to reproduce ? - The main class for a Spring Boot application needs to be initialized to "org.springframework.boot.loader.JarLauncher" and not the application's actual main class.