You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Larry Isaacs <La...@sas.com> on 2000/05/24 18:41:45 UTC

[PATCH] Fix for auto created contexts not appearing in tomcat-apa che.conf

Hi,

I found that tomcat-apache.conf only gets contexts found in the server.xml file.  Those added solely by AutoSetup are not present.  The following diff fixes this by moving the call to "apacheConfig.execute( cm );" until after "cm.init();". It didn't look like this would lead to side effects.

====== patchfile.txt =======
--- Tomcat.java.orig	Wed May 24 06:24:04 2000
+++ Tomcat.java	Wed May 24 12:31:18 2000
@@ -192,10 +192,10 @@
 	// Generate Apache configs
 	//
 	org.apache.tomcat.task.ApacheConfig apacheConfig=new  org.apache.tomcat.task.ApacheConfig();
-	apacheConfig.execute( cm );     
 
 	System.out.println(sm.getString("tomcat.start"));
 	cm.init(); // set up contexts
+	apacheConfig.execute( cm );
 	cm.start(); // start serving
     }
     
============================

Larry

__________
Larry Isaacs		
Larry.Isaacs@sas.com
SAS Institute Inc.