StandardContext.java reads public String findStatusPage(int status) { return ((String) statusPages.get(new Integer(status))); } This is wrong and it should be public String findStatusPage(int status) { return ((ErrorPage) statusPages.get(new Integer(status))).getLocation(); } Regards, lg
Ironically the suggested fix also yeilds a ClassCastException ( but would have been caught at compile time) Fixed with alternative patch.
Sorry that the patch was not 100% correct, and thanks for fixing it.