Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-362

CLONE - Windows service fails to stop with error code 1053 (using Windows 7 service manager)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.0.15
    • None
    • Procrun
    • Any windows OS 64 bit
      JRE 1.8
      WinRun4J for making tomcat as a windows service
      Tomcat 8.5.8 version

    Description

      Using Windows services manager (services.msc) to start/stop service.
      Service installed with the following start/stop settings.
      #service parameters
      service.class=com.myserver.launcher.tomcat.Tomcat8Service
      service.id=myappservice
      service.startup=auto
      service.name=myappservice
      service.description=my app service

      Service starts OK.

      When I use services manager to stop the service, the application stops running but the my service is not getting terminates (myappserver.exe) process does not terminate.
      Eventually the services manager reports that:
      "Windows could not stop the <MyServiceName> service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion."

      The service then stays at status "stopping" & cannot be stopped

      Looking at the application logs I can see that the application's stop() method gets called -

      com.myserver.launcher.tomcat.Tomcat8Service.java extends the WinRun4j --> AbstractService.java

      We have our own tomcat-launcher which internally invokes the org.apache.catalina.startup.Bootstrap.stop() method to stop the tomcat. However it is not able to kill the myappserver.exe process. .

      Any pointer would really helpful.

      Attachments

        Issue Links

          Activity

            People

              gchauvet Guillaume Chauvet
              raghavaraju.k Raghavaraju Kudari
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: