tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yoshiyuki Karezaki <k...@wtank.csk.co.jp>
Subject [PATCH] Re: BugRat Report #103 has been filed.
Date Tue, 12 Sep 2000 04:57:53 GMT
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

Mime
View raw message