tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startu p Tomcat.java
Date Fri, 02 Jun 2000 13:47:47 GMT
Hi Gal,

I posted a patch earlier against Tomcat.java pointing out that by executing "apacheConfig.execute(
cm );" before "cm.init();", the tomcat-apache.conf file won't include any contexts auto-setup
by the AutoSetup interceptor and not found in server.xml.  This isn't immediately apparent
because server.xml includes all the supplied webapps explicitly.

Is not including "auto-setup" contexts by design?

As a fix, my patch simply suggested moving "apacheConfig.execute( cm );" to immediately follow
"cm.init();" so it would pickup any additional contexts that were "auto-setup".

Thanks.

Larry

-----Original Message-----
From: shachor@locus.apache.org [mailto:shachor@locus.apache.org]
Sent: Friday, June 02, 2000 7:13 AM
To: jakarta-tomcat-cvs@apache.org
Subject: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup
Tomcat.java


shachor     00/06/02 04:12:59

  Modified:    src/share/org/apache/tomcat/startup Tomcat.java
  Log:
  Auto generation of configuration files for
  Apache - mod_jk.config
  IIS - .reg file for Tomcat registry entries and uri to worker map
  Netscape - The mising portions in obj.conf
  
  Revision  Changes    Path
  1.27      +10 -0     jakarta-tomcat/src/share/org/apache/tomcat/startup/Tomcat.java
  
  Index: Tomcat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/startup/Tomcat.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Tomcat.java	2000/06/01 13:50:20	1.26
  +++ Tomcat.java	2000/06/02 11:12:54	1.27
  @@ -213,6 +213,16 @@
   	org.apache.tomcat.task.ApacheConfig apacheConfig=new  org.apache.tomcat.task.ApacheConfig();
   	apacheConfig.execute( cm );     
   
  +	// Generate IIS configs
  +	//
  +	org.apache.tomcat.task.IISConfig iisConfig=new  org.apache.tomcat.task.IISConfig();
  +	iisConfig.execute( cm );     
  +
  +	// Generate Netscape configs
  +	//
  +	org.apache.tomcat.task.NSConfig nsConfig=new  org.apache.tomcat.task.NSConfig();
  +	nsConfig.execute( cm );     
  +
   	System.out.println(sm.getString("tomcat.start"));
   	cm.init(); // set up contexts
   	cm.start(); // start serving
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

Mime
View raw message