Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 36139 invoked from network); 29 Apr 2008 15:06:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 15:06:25 -0000 Received: (qmail 91356 invoked by uid 500); 29 Apr 2008 15:06:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 91312 invoked by uid 500); 29 Apr 2008 15:06:04 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 91275 invoked by uid 99); 29 Apr 2008 15:06:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 08:06:04 -0700 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.185] (HELO exprod6og103.obsmtp.com) (64.18.1.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 15:05:09 +0000 Received: from source ([192.150.11.134]) by exprod6ob103.postini.com ([64.18.5.12]) with SMTP; Tue, 29 Apr 2008 08:05:29 PDT Received: from inner-relay-3.eur.adobe.com ([192.150.8.236]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id m3TF2RG3004215 for ; Tue, 29 Apr 2008 08:02:27 -0700 (PDT) Received: from fe01.corp.adobe.com (lcsbe.corp.adobe.com [10.8.192.82] (may be forged)) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id m3TF5QqJ011502 for ; Tue, 29 Apr 2008 08:05:26 -0700 (PDT) Received: from nacas02.corp.adobe.com (10.8.189.100) by fe01.corp.adobe.com (10.8.192.82) with Microsoft SMTP Server (TLS) id 8.1.263.0; Tue, 29 Apr 2008 08:05:25 -0700 Received: from [153.32.223.17] (153.32.223.17) by nacas02.corp.adobe.com (10.8.189.130) with Microsoft SMTP Server id 8.1.263.0; Tue, 29 Apr 2008 08:05:25 -0700 Message-ID: <09918BC2-0672-415D-8C11-CC7E508D5CD5@adobe.com> From: Michael Burbidge To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary="Apple-Mail-13--753909687" MIME-Version: 1.0 (Apple Message framework v919.2) Subject: Where to define Context element... Date: Tue, 29 Apr 2008 08:05:24 -0700 X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-13--753909687 Content-Type: text/plain; charset="US-ASCII"; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I'm trying to define a JNDI resource for a datasource. The Tomcat documentation lists several different places that you can define a Context element. I don't want to define it in my app's web.xml and I don't want to modify tomcat config files. I want to define a companion file for my app, but I'm having a hard time understanding the documentation. It says the following, is one place you can define a Context element: in individual files (with a ".xml" extension) in the $CATALINA_HOME/ conf/[enginename]/[hostname]/ directory. The name of the file (less the .xml) extension will be used as the context path. Multi-level context paths may be defined using #, e.g.context#path.xml. My web app is in a war called mytest.war, which I deployed to $CATALINA_HOME/webapps. My web.xml has the following elements: mytest org.springframework.web.servlet.DispatcherServlet 1 mytest /* I placed a file named mytest.xml in $CATALINA_HOME/conf/Catalina/ localhost/mytest.xml. mytest.xml contains the following: My Context defined this way is not loaded. I've checked using the Tomcat Manager and there is no JNDI resource loaded. What am I doing wrong? Thanks, Michael- --Apple-Mail-13--753909687--