Posts

Skip deploying or stop web application if servlet context initialization fails

Image
2 1 In our project, we have several Spring-based modules which are deployed on WAS as web applications. We need to skip deployment, or stop a module if its Spring context initialization fails (i.e. ContextLoaderListener#contextInitialized or DispatcherServlet#init throws an exception). Now, if such happens, app is got deployed and starts, but returns HTTP 500 for any request. Websphere 8.5.5 Related question: https://stackoverflow.com/a/272747/3459206 java servlets web-applications websphere share | improve this question edited Dec 26 '18 at 14:38 Alex Salauyou ...