commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghavaraju Kudari (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DAEMON-362) CLONE - Windows service fails to stop with error code 1053 (using Windows 7 service manager)
Date Wed, 21 Jun 2017 08:14:00 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Raghavaraju Kudari updated DAEMON-362:
--------------------------------------
    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.





  was:
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. .






> CLONE - Windows service fails to stop with error code 1053 (using Windows 7 service manager)
> --------------------------------------------------------------------------------------------
>
>                 Key: DAEMON-362
>                 URL: https://issues.apache.org/jira/browse/DAEMON-362
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.15
>         Environment: Any windows OS 64 bit 
> JRE 1.8
> WinRun4J for making tomcat as a windows service
> Tomcat 8.5.8 version
>            Reporter: Raghavaraju Kudari
>            Assignee: Guillaume Chauvet
>              Labels: prunsrv, stop, windows
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message