Return-Path: Delivered-To: apmail-apache-bugdb-archive@apache.org Received: (qmail 82695 invoked by uid 500); 10 Nov 2000 22:40:01 -0000 Mailing-List: contact apache-bugdb-help@apache.org; run by ezmlm Precedence: bulk Reply-To: apache-bugdb@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-bugdb@apache.org Received: (qmail 82666 invoked by uid 501); 10 Nov 2000 22:40:01 -0000 Date: 10 Nov 2000 22:40:01 -0000 Message-ID: <20001110224001.82665.qmail@locus.apache.org> To: jserv-bugdb@apache.org Cc: apache-bugdb@apache.org, From: Bernie Subject: Re: mod_jserv/6479: ServletException not logged when thrown from within init() Reply-To: Bernie The following reply was made to PR mod_jserv/6479; it has been noted by GNATS. From: Bernie To: gnats-admin@bugz.apache.org, jserv-bugdb@apache.org Cc: Subject: Re: mod_jserv/6479: ServletException not logged when thrown from within init() Date: Sat, 11 Nov 2000 11:34:55 +1300 Marc Connolly suggested in java-apache-users@list.working-dogs.com on Date: Fri, 25 Aug 2000 23:13:31 -0400 Found an appropriate place to put a quick hack (JServServletManager - > loadStartupServlets) as folllows: Original =3D=3D=3D=3D=3D=3D=3D=3D private void loadStartupServlets(JServSendError se) { if (startups =3D=3D null) { return; } for(int i =3D 0; i < startups.length; i++) { String servname =3D startups[i]; if (servname =3D=3D null) { continue; } try { loadServlet(servname, se); } catch (ServletException initError) { se.sendError(initError); <---- this guy was doing nothing } } } Hack =3D=3D=3D=3D=3D=3D=3D=3D private void loadStartupServlets(JServSendError se) { if (startups =3D=3D null) { return; } for(int i =3D 0; i < startups.length; i++) { String servname =3D startups[i]; if (servname =3D=3D null) { continue; } try { loadServlet(servname, se); } catch (ServletException initError) { JServ.log.log(CH_SERVLET_EXCEPTION, "(loadStartupServlets) initialization failed for servlet: '" + servname + "'; initError.getMessage()=3D" + initError.getMessage()); se.sendError(initError); // leave him in for now... } } }