[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 --- Comment #7 from Veeru --- Yes I have tried it. But that time I was seeing another issue that Error 1503. I would suggest , It would be better to invoke system.exit(0) as we are doing intentionally in case of port is disabled. Thanks agai

[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 --- Comment #6 from Mark Thomas --- I've never used WinRun4J. I'd suggest the simplest solution is to configure a shutdown port with a strong shutdown password and ensure that server.xml is appropriately protected. If you need further help/adv

[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 --- Comment #5 from Veeru --- Thanks for quick response. I am using WinRun4J.jar to start my tomcat as a windows service. I am not sure where to set this jvm mode. And I am disabling shutdown port by setting port="-1" in server.xml. Since

[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 Mark Thomas changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW

[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 --- Comment #3 from Veeru --- Thanks you very much. Waiting for your input. At present I build the catalina.jar with system.exit(0) as 0 represent success. 0 -- success 1 -- exception -1 -- Error -- You are receiving this mail because: You a

[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-05 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 --- Comment #2 from Mark Thomas --- The exit code of -1 is correct in that case. The user is trying to use the shutdown command when the port is disabled. We need to look at how we integrate with Commons Daemon and how Daemon handles this to s

[Bug 61250] Disabling shutdown port exit tomcat with System.exit(1) causes issue

2017-07-04 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=61250 --- Comment #1 from Veeru --- Hi All, I am running tomcat as windows service and disabled the shutdown port in server.xml. So when I am stopping the service, tomcat service is killed and the process also killed . However since tomcat is exit