Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31AC210093 for ; Tue, 14 Jan 2014 15:17:56 +0000 (UTC) Received: (qmail 12695 invoked by uid 500); 14 Jan 2014 15:17:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 12634 invoked by uid 500); 14 Jan 2014 15:17:48 -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 12624 invoked by uid 99); 14 Jan 2014 15:17:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jan 2014 15:17:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bob.deremer@thingworx.com designates 207.46.163.239 as permitted sender) Received: from [207.46.163.239] (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.163.239) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jan 2014 15:17:41 +0000 Received: from BLUPR06MB193.namprd06.prod.outlook.com (10.242.191.143) by BLUPR06MB193.namprd06.prod.outlook.com (10.242.191.143) with Microsoft SMTP Server (TLS) id 15.0.851.11; Tue, 14 Jan 2014 15:17:17 +0000 Received: from BLUPR06MB193.namprd06.prod.outlook.com ([169.254.16.155]) by BLUPR06MB193.namprd06.prod.outlook.com ([169.254.16.155]) with mapi id 15.00.0851.011; Tue, 14 Jan 2014 15:17:17 +0000 From: Bob DeRemer To: Tomcat Users List Subject: RE: META-INF/Context.xml path question Thread-Topic: META-INF/Context.xml path question Thread-Index: Ac8QhOt34N6mjfoKSYqEylrSH/uFugAF2SEAACfU0pA= Date: Tue, 14 Jan 2014 15:17:17 +0000 Message-ID: <864f1fff9fac4e4eb2c3dbfe18a10f54@BLUPR06MB193.namprd06.prod.outlook.com> References: <52D44990.3090004@apache.org> In-Reply-To: <52D44990.3090004@apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [96.245.114.98] x-forefront-prvs: 0091C8F1EB x-forefront-antispam-report: SFV:NSPM;SFS:(10019001)(779001)(689001)(679001)(24454002)(13464003)(189002)(199002)(252514010)(377454003)(479174003)(51704005)(46102001)(15975445006)(76482001)(54316002)(87936001)(56776001)(90146001)(51856001)(81542001)(53806001)(74366001)(54356001)(47736001)(49866001)(47976001)(87266001)(92566001)(93136001)(76786001)(76576001)(2656002)(4396001)(76796001)(81686001)(81816001)(59766001)(74316001)(31966008)(83072002)(80976001)(74662001)(85852003)(15202345003)(77096001)(74502001)(47446002)(33646001)(74706001)(77982001)(85306002)(66066001)(81342001)(83322001)(69226001)(79102001)(63696002)(19580405001)(56816005)(74876001)(65816001)(19580395003)(50986001)(80022001)(512284002)(24736002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR06MB193;H:BLUPR06MB193.namprd06.prod.outlook.com;CLIP:96.245.114.98;FPR:;RD:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: thingworx.com X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Mark Thomas [mailto:markt@apache.org] > Sent: Monday, January 13, 2014 3:16 PM > To: Tomcat Users List > Subject: Re: META-INF/Context.xml path question >=20 > On 13/01/2014 17:38, Bob DeRemer wrote: > > We're trying to determine if it's possible to build a WAR with an > > embedded META-INF/Context.xml >=20 > It is context.xml, not Context.xml. Case matters. >=20 > > that defines the webapp path to be > > different then the WAR file name. >=20 > No, it is not possible to do this. >=20 > > Let's say we have > > AppServer-.war, but we want to access it as: > > http:///Server. In addition, we want to support > > uploading/installing the WAR both from the Manager app as well as > > using ftp/command-line to copy the WAR and restart Tomcat. This way, > > it's pretty much automatic without editing/creating additional XML > > files. > > > > If this works, then we can have identifiable WAR files, but with a > > common/standard webapp path. >=20 > The way to have identifiable WARs is to use the version element of the > filename. For example, server##1.0.15.war will be auto-deployed with a > context path of /server. The version tag can be pretty much anything you = like as > long as the file name is valid. You don't have to be using parallel deplo= yment to > make use of it. version syntax works great, thx >=20 > > We have reviewed the docs and the only approach that has worked for us > > is adding a separate Context element to the /conf/Server.xml > > file. >=20 > It is server.xml. Again, case matters. >=20 > Mark >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org