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 work:
- Dorg.apache.catalina.startup.EXIT_ON_INIT_FAILURE=true