Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 95775 invoked from network); 12 Sep 2000 04:41:34 -0000 Received: from msp-26-164-174.mn.rr.com (HELO localhost.localdomain) (24.26.164.174) by locus.apache.org with SMTP; 12 Sep 2000 04:41:34 -0000 Received: from cskinetgw.cski.csk.co.jp (cskinetgw.cski.csk.co.jp [203.179.35.2]) by localhost.localdomain (8.9.3/8.9.3) with ESMTP id WAA11740 for ; Mon, 11 Sep 2000 22:39:25 -0500 Received: from cskdaemon.cske.csk.co.jp ([133.166.1.1]) by cskinetgw.cski.csk.co.jp (8.8.8/3.6W99043001) with ESMTP id NAA14320; Tue, 12 Sep 2000 13:39:37 +0900 (JST) Received: from cskwtankgw.wtank.csk.co.jp (localhost [127.0.0.1]) by cskdaemon.cske.csk.co.jp (8.8.8/3.6W99021721) with ESMTP id NAA02617; Tue, 12 Sep 2000 13:41:43 +0900 (JST) Received: by cskwtankgw.wtank.csk.co.jp (8.9.3/3.7W-02/03/99) with SMTP id NAA17838; Tue, 12 Sep 2000 13:57:53 +0900 (JST) Date: Tue, 12 Sep 2000 13:57:53 +0900 (JST) Message-Id: <200009120457.NAA17838@cskwtankgw.wtank.csk.co.jp> From: Yoshiyuki Karezaki Organization: CSK Corp.,Osaka, Japan. To: tomcat-dev@jakarta.apache.org, tomcat-bugs@cortexity.com Cc: tomcat-bugs@cortexity.com Subject: [PATCH] Re: BugRat Report #103 has been filed. In-Reply-To: Your message of "Mon, 11 Sep 2000 20:45:14 -0500 (CDT)". <134619673.968723114251.JavaMail.nobody@fatman> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Mailer: mnews [version 1.22] 1999-12/19(Sun) X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, All. In article , tomcat-bugs@cortexity.com writes: I have two different ideas(patch) to fix this problem. 1. patch for org/apache/tomcat/core/ContextManager.java --- ContextManager.java Fri Sep 8 14:10:01 2000 +++ /home/kare/tmp/jakarta/ContextManager.java.new Mon Sep 11 18:41:03 2000 @@ -439,9 +439,15 @@ */ public void initContext( Context ctx ) throws TomcatException { ContextInterceptor cI[]=getContextInterceptors(); + ContextInterceptor lOs = null; for( int i=0; i< cI.length; i++ ) { + if (cI[i] instanceof LoadOnStartupInterceptor) { + lOs = cI[i]; + continue; + } cI[i].contextInit( ctx ); } + if (lOs != null) lOs.contextInit( ctx ); } /** Stop the context and release all resources. or 2. patch for org/apache/tomcat/context/LoadOnStartupInterceptor.java --- LoadOnStartupInterceptor.java Fri Sep 8 14:10:01 2000 +++ LoadOnStartupInterceptor.java.new Tue Sep 12 11:57:25 2000 @@ -164,7 +164,7 @@ request.setQueryString( "jsp_precompile=true" ); request.setContext(context); - request.getSession(true); + // request.getSession(true); cm.service( request, response ); // RequestDispatcher rd = context.getFacade().getRequestDispatcher(requestURI); Thanks, Kare