tomcat icon indicating copy to clipboard operation
tomcat copied to clipboard

adding exitOnFirstListenerFailure flag in standardcontext to enable to stop at first listener error

Open rmannibucau opened this issue 4 years ago • 3 comments

follow up of the list discussion, trying to propose a new flag.

rmannibucau avatar Jan 13 '21 14:01 rmannibucau

Ideally, this should be resolved one way or the other by the specification. Also I noticed there is a failCtxIfServletStartFails attribute already, which can easily be abused without too many problems. This is for load on startup Servlets. Overall I don't think it's a great plan to add flags for everything.

rmaucher avatar Jan 13 '21 14:01 rmaucher

@rmaucher agree it would be great if spec can clarifies it (in a way making the flag true OOTB ;)) but merging with the servlet flag is kind of different, listener being used to setup env (or symmetrically cleanup), you can need to go through them even if some fails (for auditing for ex) whereas servlets being the runtime it is often an all or none so guess we should keep both split.

rmannibucau avatar Jan 13 '21 14:01 rmannibucau

Can you expand on why this is an issue? The web application doesn't start either way and - generally - I think I'd prefer to see the scale of the problem (how many errors are there in total) rather than face an unknown number of repetitions of "start app, fails, fix error, repeat". I don't recall any EG discussion on this topic but 'll look to see if anything happened before my time or if I've forgotten something.

markt-asf avatar Jan 13 '21 15:01 markt-asf