costin      00/12/26 15:01:07

  Modified:    src/share/org/apache/tomcat/context AutoSetup.java
  Log:
  The contexts should be added before the engine is started.
  engineInit() should initialize the interceptor and prepare it, if we add
  contexts we might have a server that is not completely set up.
  
  Revision  Changes    Path
  1.20      +2 -1      
jakarta-tomcat/src/share/org/apache/tomcat/context/AutoSetup.java
  
  Index: AutoSetup.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/context/AutoSetup.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- AutoSetup.java    2000/12/13 19:58:00     1.19
  +++ AutoSetup.java    2000/12/26 23:01:07     1.20
  @@ -87,7 +87,7 @@
        *       We need a mechanism ( or convention ) to configure
        *  virtual hosts too
        */
  -    public void engineInit(ContextManager cm) throws TomcatException {
  +    public void engineStart(ContextManager cm) throws TomcatException {
        super.engineInit( cm );
        String home=cm.getHome();
        File webappD=new File(home + "/webapps");
  @@ -165,6 +165,7 @@
                   if( debug > 0 )
                       log("automatic add " + ctx.toString() + " " + path);
                   cm.addContext(ctx);
  +             ctx.init();
               } else {
                   if( debug>0)
                   log("Already set up: " + path + " "
  
  
  

Reply via email to