Enable web app to fail during initialisation

This is needed to test support for making Tomcat fail if an
application fails to start.

[#49091441]
Merge 49091441- to master

[#49091441]