Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 31749 invoked from network); 9 Aug 2004 22:28:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Aug 2004 22:28:18 -0000 Received: (qmail 21184 invoked by uid 500); 9 Aug 2004 22:27:52 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 21151 invoked by uid 500); 9 Aug 2004 22:27:52 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 21138 invoked by uid 99); 9 Aug 2004 22:27:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [68.230.240.28] (HELO lakermmtao11.cox.net) (68.230.240.28) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 09 Aug 2004 15:27:49 -0700 Received: from cox.net ([68.100.31.153]) by lakermmtao11.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040809222744.MLGV10626.lakermmtao11.cox.net@cox.net> for ; Mon, 9 Aug 2004 18:27:44 -0400 Message-ID: <4117FA5C.24E13FC8@cox.net> Date: Mon, 09 Aug 2004 18:27:40 -0400 From: ohaya X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Newbie - JDBC problem "Name is not bound in this context" References: <411786AC.8F79415C@cox.net> <23816-74136@sneakemail.com> <4117E5E6.1A6E81CD@cox.net> <20040809213855.GA9037@strange.dreamhost.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > > There are 2 ways for the {tomcat}/conf/{...}.xml files to be created: > > 1/ META-INF/context.xml is extracted from a WAR file when it is deployed > and copied there. > (Unless the matching XML file already exists under conf/, in which case > the WAR file's context.xml is ignored) > > 2/ The file is manually copied there by someone. QM, I'll try the "experiment" that you suggested, but FYI, there are no .WAR files in either the unzipped directories from just unzipping, or in any subdirectories under my working [TOMCAT HOME]. If those extra .xml files got created because of #1 above, would you expect to find some files named .war? Also, there are no directories named "META-INF" or files called "context.xml". I'll post back in a bit after I've tried the bit with changing the Engine name... Jim > > The servlet-examples.xml and jsp-examples.xml files are included in the > default Tomcat distro, and remain there unless explicitly removed. For > example, to address the issue mentioned in point #1, I periodically > clear out the conf/{...}/*.xml files. > > Here's an experiment and learning exercise for you: edit server.xml, > change the element's "name" attr, then bounce Tomcat. Notice > under {tomcat}/conf/ there's a new dir that matches the name. > > What files are under that directory, now? > > I realize this may be confusing at times because there's a lot to > absorb when leaping into Tomcat (or any container, for that matter). > Give it time, and soon you'll know all of this by heart. =) > > btw, if you use separate Tomcat instances (check the docs for > CATALINA_HOME vs CATALINA_BASE) then this is moot: the only > context-related XML files under {instance dir}/conf/ will be the ones > for your webapps, not the samples. ;) But that's another story for > another day. > > -QM > > -- > > software -- http://www.brandxdev.net > tech news -- http://www.RoarNetworX.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org