Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 80046 invoked from network); 9 Feb 2001 21:02:31 -0000 Received: from mercury.sun.com (192.9.25.1) by h31.sny.collab.net with SMTP; 9 Feb 2001 21:02:31 -0000 Received: from centralmail1.Central.Sun.COM ([129.147.62.10]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA27877 for ; Fri, 9 Feb 2001 13:02:36 -0800 (PST) Received: from esun1as-mm. (esun1as-mm.Central.Sun.COM [129.147.34.144]) by centralmail1.Central.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.1p1) with SMTP id OAA13781 for ; Fri, 9 Feb 2001 14:02:36 -0700 (MST) Received: from eng.sun.com by esun1as-mm. (SMI-8.6/SMI-SVR4) id OAA13020; Fri, 9 Feb 2001 14:21:27 -0700 Message-ID: <3A845B6D.5136AAB5@eng.sun.com> Date: Fri, 09 Feb 2001 13:04:45 -0800 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.76 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: Default Contexts? References: <200102092035.PAA70809@mail.horseracinginfo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Bill Antoniadis wrote: > Hi, > > I have server.xml configured so the ContextManager adds two personally defined > contexts ("tote1" & "tote2") located in TOMCAT_HOME/webapps. However, the > Tomcat v3.2.1 startup reports more contexts: > > 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /tote1 ) > 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /tote2 ) > 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( ) > 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /test ) > 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /admin ) > 2001-02-09 03:19:52 - ContextManager: Adding context Ctx( /vhosts ) > > Will tomcat automatically add all subdirectories in TOMCAT_HOME/webapps as > contexts? Yes. > If so, why is ROOT not added (or is that " ")? Yes, it is. If you want your own files to be in the "default" webapp, this is the place to put them to take advantage of the default initialization. > Is there anyway to > stop this behaviour? Two different ways: * Don't put your directories under webapps - put them someplace else and create entries that refer to them. * Comment out the ContextInterceptor with class "org.apache.tomcat.context.AutoSetup". Craig McClanahan