From users-return-264109-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Thu Mar 8 19:56:35 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D983618064C for ; Thu, 8 Mar 2018 19:56:34 +0100 (CET) Received: (qmail 57836 invoked by uid 500); 8 Mar 2018 18:56:33 -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 57826 invoked by uid 99); 8 Mar 2018 18:56:33 -0000 Received: from mail-relay.apache.org (HELO mailrelay1-lw-us.apache.org) (207.244.88.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2018 18:56:33 +0000 Received: from [192.168.23.12] (host81-156-46-215.range81-156.btcentralplus.com [81.156.46.215]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 337E3503 for ; Thu, 8 Mar 2018 18:56:32 +0000 (UTC) Subject: Re: Strange behavior on Tomcat 9.0.5 about ResourceLink's "name" attribute in server.xml To: Tomcat Users List References: From: Mark Thomas Message-ID: Date: Thu, 8 Mar 2018 18:56:31 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit On 08/03/18 18:53, Tarin Gamberini wrote: > On 08/03/2018 17:52, Rémy Maucherat wrote: >> On Thu, Mar 8, 2018 at 5:26 PM, Tarin Gamberini >>> [cut] >>> # PROBLEM >>> >>> I have two datasources in the same web application: >>> >>> >> type="javax.sql.DataSource"/> >>> >> type="javax.sql.DataSource"/> >>> [cut] >> >> Well, you have "abc" that s already bound and is a datasource, then you try >> to create a subcontext "abc" and it doesn't work. > Sorry, I'm not sure I have understood what you mean. Just for clarification: > > 1. > By «you have "abc" that s already bound and is a datasource» are you > thinking about the "abc" just after "jdbc/" in «global="jdbc/abc/ABC"» ? > > 2. > By «then you try to create a subcontext "abc"» are you thinking about > the ending ABC in «global="jdbc/abc/ABC"» ? No. Look at the names, not the global names. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org