Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 41930 invoked from network); 9 Jan 2007 09:58:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2007 09:58:36 -0000 Received: (qmail 37418 invoked by uid 500); 9 Jan 2007 09:58:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37391 invoked by uid 500); 9 Jan 2007 09:58:29 -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 37380 invoked by uid 99); 9 Jan 2007 09:58:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 01:58:29 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [64.41.126.132] (HELO smtpauth01.csee.siteprotect.com) (64.41.126.132) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 01:58:18 -0800 Received: from [192.168.0.61] (LNeuilly-152-23-77-40.w217-128.abo.wanadoo.fr [217.128.193.40]) by smtpauth01.csee.siteprotect.com (Postfix) with ESMTP id 553B432C028 for ; Tue, 9 Jan 2007 04:00:23 -0600 (CST) Message-ID: <45A36721.8070006@sunopsis.com> Date: Tue, 09 Jan 2007 10:57:53 +0100 From: Arnaud MERGEY User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: something wrong creating datasource after war deployement References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------040706050903010604000603" X-Virus-Checked: Checked by ClamAV on apache.org --------------040706050903010604000603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit thnaks for all, it's clear for me now. Caldarale, Charles R a �crit : >> From: Arnaud MERGEY [mailto:amergey@sunopsis.com] >> Subject: Re: something wrong creating datasource after war deployement >> >> I updated the META-INF/context.xml in the unpacked directory, >> > > You need to update the one in conf/Catalina/[host], since that overrides > the ones in the .war and the unpacked directory. > > >> this is strange because when I update the META-INF/context.xml, I can >> see newly datasources in the tomcat admin webapps (but with blank >> driver class and url info). >> > > It wouldn't surprise me if Tomcat is doing some merging of the two > elements, rather than enforcing a complete override. > > >> If I update META-INF/context.xml in application without war file in >> webapps, everything works and I can see newly datasources in >> the tomcat admin webapps with driver class and url. >> > > Tomcat automatically creates the conf/Catalina/[host]/[appname].xml file > from META-INF/context.xml only when deploying apps packaged in .war > files, regardless of the setting of unpackWARs; it does not create one > in the conf directory for apps that are deployed in an unpacked form, > although you may place your own in conf/Catalina/[host] to override the > one in META-INF. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------040706050903010604000603--