Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 61979 invoked from network); 3 Feb 2009 04:27:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 04:27:51 -0000 Received: (qmail 83522 invoked by uid 500); 3 Feb 2009 04:27:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 83494 invoked by uid 500); 3 Feb 2009 04:27:40 -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 83483 invoked by uid 99); 3 Feb 2009 04:27:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 20:27:40 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [91.121.203.225] (HELO r12857.ovh.net) (91.121.203.225) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 04:27:32 +0000 Received: from cgprs.orangenet.mg ([80.12.72.20] helo=[10.122.1.255]) by r12857.ovh.net with esmtpa (Exim 4.69) (envelope-from ) id 1LUCsL-00033x-4d for users@tomcat.apache.org; Tue, 03 Feb 2009 05:27:09 +0100 Message-ID: <4987C74B.4050107@lab.vectoris.fr> Date: Tue, 03 Feb 2009 07:25:47 +0300 From: Mihamina Rakotomandimby User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Tomcat Users List Subject: tomcat only query localhost database Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, A developper gave me a .war webapp. When deploying it, it creates an xml file: /etc/tomcat6/Catalina/localhost/webappName.xml which is a copy of the one in /var/lib/tomcat6/webapps/webappName/META-INF/context.xml Then context.xml file contains the JDBC/MySQL host,login,pass where host is NOT localhost But the tomcat insist to connect to localhost. after deployment, if I change (after stopping RMI & tomcat) the content of /etc/tomcat6/Catalina/localhost/webappName.xml to another host (then start RMI & tomcat) tomcat still use localhost as database host. It's an Ubuntu tomcat6 packaged install. Any help? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org