Re: How to stop Tomcat if servlet fails to initialize

2017-06-22 Thread Mark Thomas
Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: 22. kesäkuuta 2017 13:46 > To: Tomcat Users List > Subject: Re: How to stop Tomcat if servlet fails to initialize > > On 22/06/17 11:44, Pesonen, Harri wrote: >> Hello, I tried adding throwOnFailure to

RE: How to stop Tomcat if servlet fails to initialize

2017-06-22 Thread Pesonen, Harri
8.5.13. Maybe it is supported in 9 only. -Harri -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 22. kesäkuuta 2017 13:46 To: Tomcat Users List Subject: Re: How to stop Tomcat if servlet fails to initialize On 22/06/17 11:44, Pesonen, Harri wrote: > Hello, I tr

Re: How to stop Tomcat if servlet fails to initialize

2017-06-22 Thread Mark Thomas
ssage- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: 21. kesäkuuta 2017 17:28 > To: Tomcat Users List > Subject: Re: How to stop Tomcat if servlet fails to initialize > > On 21/06/17 13:33, Pesonen, Harri wrote: >> Hello, if one servlet fails to initialize

RE: How to stop Tomcat if servlet fails to initialize

2017-06-22 Thread Pesonen, Harri
ind a matching property. Maybe I did it wrong: -Harri -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 21. kesäkuuta 2017 17:28 To: Tomcat Users List Subject: Re: How to stop Tomcat if servlet fails to initialize On 21/06/17 13:33, Pesonen, Harri wrote: > Hell

Re: How to stop Tomcat if servlet fails to initialize

2017-06-21 Thread Mark Thomas
On 21/06/17 13:33, Pesonen, Harri wrote: > Hello, if one servlet fails to initialize, meaning that > ServletContextListener.contextInitialized() throws exception, then Tomcat > still starts (but without the servlet). If ServletContextListener.contextInitialized(), the web application will not s

How to stop Tomcat if servlet fails to initialize

2017-06-21 Thread Pesonen, Harri
Hello, if one servlet fails to initialize, meaning that ServletContextListener.contextInitialized() throws exception, then Tomcat still starts (but without the servlet). I found out that if servlet calls System.exit(1), then Tomcat dies. Is this the only way to make this happen? This does not w