Documentation does not describe how server behaves in case of deployment of web application with servlet with init method loaded on startup which throws exception. The behaviour in such situation is not defined by servlet specification and is left up to implementation. In case od jboss the web application is successfully deployed but the servlet is unavailable. OTOH exception in ServletContextListener.contextInitialized causes deployment to fail.