2014-07-11 0:22 GMT+04:00 Konstantin Kolinko <knst.koli...@gmail.com>: > 2014-07-10 22:40 GMT+04:00 Falco Schwarz <hid...@falco.me>: >> I am seeing NPEs after reloading a web application with a custom >> <error-page>. Just downloaded the sample.war, added the following >> block in web.xml and thus reloaded the web application: >> >> <error-page> >> <location>/404.jsp</location> >> </error-page> >> >> Accessing a nonexisting page now results in NPE instead of error page >> being shown. >> After tomcat restart the error-page is shown, until the next reload of >> the application: >> > > I've reproduced the issue and run it with a debugger. > The above scenario misses step "create 404.jsp". > > Actually it is more severe. After reload the Mapper$ContextVersion > object does not contain information on wrappers (the *wrappers fields > in it contain empty lists). > > Thus after reload *any* page in the examples webapp is inaccessible > and results in error 404. > > (In case of a custom error page > "servletContext.getRequestDispatcher(errorPage.getLocation());" call > in StandardHostValve.custom() returns null ). > > > Unfortunately, it is > > [x] Broken - do not release >
7.0.x is also affected. I'd be better to retag after the fix. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org