You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Yoshiyuki Karezaki <ka...@wtank.csk.co.jp> on 2000/09/12 06:57:53 UTC

[PATCH] Re: BugRat Report #103 has been filed.

Hi, All.

In article <BugRat Report #103 has been filed.>,
	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