Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 61985 invoked from network); 28 Nov 2006 17:52:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2006 17:52:57 -0000 Received: (qmail 59676 invoked by uid 500); 28 Nov 2006 17:53:01 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 59606 invoked by uid 500); 28 Nov 2006 17:53:01 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 59587 invoked by uid 99); 28 Nov 2006 17:53:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 09:53:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [140.172.10.146] (HELO rome.boulder.noaa.gov) (140.172.10.146) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 09:52:48 -0800 Received: from [140.172.179.44] (sente2.ngdc.noaa.gov [140.172.179.44]) by email.boulder.noaa.gov (iPlanet Messaging Server 5.2 HotFix 2.01 (built Aug 26 2004)) with ESMTPSA id <0J9G00JEICBFA3@email.boulder.noaa.gov> for dev@tomcat.apache.org; Tue, 28 Nov 2006 17:52:27 +0000 (GMT) Date: Tue, 28 Nov 2006 10:52:27 -0700 From: Kris Nuttycombe Subject: Re: DO NOT REPLY [Bug 39120] - Create semantics for "path" attribute in embedded context.xml In-reply-to: <45512BFA.3070106@apache.org> To: dev@tomcat.apache.org Message-id: <456C775B.1050406@apache.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.8 (X11/20061105) References: <2771e600611070836t2d773fc4v2d1f8c08fdcc75c2@mail.gmail.com> <45512BFA.3070106@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Mark, Thanks for your reply. Perhaps I should be stating the problem in terms of how I would like to be able to deploy a web application and what was possible under 5.0 instead of in terms of the problems I have encountered. Here is what I would like to do: I have a warfile, myapp-1.3.5.war which has an embedded META-INF/context.xml file with information like the JNDI data source configuration. This webapp is to be deployed on the host foo.example.com at the path http://foo.example.com/fooco/webapps/somecategory/myapp. I also do not have any access to our production webserver; in order to deploy a web application, I need to be able to give this warfile to a system administrator who knows nothing about Tomcat and have him deploy the application. Under Tomcat 5.0 and previous releases, I was able to simply have him drop the warfile in the $CATALINA-HOME/webapps directory and everything would work fine. If I gave him a new version, myapp-1.4.0.war, he could look in the webapps directory and see that myapp-1.3.5 needed to be replaced. From my experience, under tomcat 5.5, myapp-1.3.5.war has to be put into some other tomcat-accessible directory on the server, and the content of the embedded context.xml file has to be extracted and added to the server.xml file. This means that manual intervention of the sysadmin is required, where before we were able to have an rsync'ed staging directory on a server to which our developers have access; we would simply drop the warfile there and it would automatically be copied out to the production server during the maintainance window. If there is a way to make things work like they did under Tomcat 5.0, please, please let me know. I interspersed a few more comments below. Thanks, Kris Mark Thomas wrote: > Kris Nuttycombe wrote: > >> Is there any documentation on the rationale behind this change? >> > As far as I recall, there were a number of posts to the dev list back > when the 5.5.x branch was being proposed. The (very) short version was > to make things simpler and less buggy. > >> It is >> extraordinarily inconvenient as it prevents the deployment of a >> context at any path other than the server root unless you unpack the >> warfile - effectively making straight warfile deployment impossible in >> such a case. >> > Maybe I am missing your point but you can deploy a war at any path you > like without having to unpack it. Options include: > - in individual files (with a ".xml" extension) in the > $CATALINA_HOME/conf/[enginename]/[hostname]/ directory > You're talking here about the context.xml file. When a warfile is simply dropped in to the $CATALINA_HOME/webapps directory, the context.xml file is extracted from META-INF and placed in the correct location; however, the value of the "path" attribute appears to be ignored. > - in individual files (with a ".xml" extension) in the > $CATALINA_HOME/webapps directory > I have not been able to get this approach to work at all. I presume that you're talking about the context.xml file here? When I put myapp.xml in this directory, the webapp is not found at all. > - rename the war > This doesn't solve the problem of having the webapp deployed in some deep directory structure. >> In my shop, developers use the >> manager web application to deploy our applications and don't have >> write permissions for server.xml - but need to be able to deploy >> applications that don't have paths at the server root. >> > And the manager doesn't (or at least it shouldn't) stop them doing this. > > Mark > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org