Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 89050 invoked from network); 1 Dec 2004 15:49:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 15:49:13 -0000 Received: (qmail 35785 invoked by uid 500); 1 Dec 2004 15:43:07 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 35644 invoked by uid 500); 1 Dec 2004 15:43:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 35565 invoked by uid 99); 1 Dec 2004 15:43:03 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from pop-a065c05.pas.sa.earthlink.net (HELO pop-a065c05.pas.sa.earthlink.net) (207.217.121.183) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 07:43:01 -0800 Received: from h-67-101-67-115.hstqtx02.dynamic.covad.net ([67.101.67.115] helo=[127.0.0.1]) by pop-a065c05.pas.sa.earthlink.net with esmtp (Exim 3.33 #1) id 1CZWd6-0001ev-00 for tomcat-user@jakarta.apache.org; Wed, 01 Dec 2004 07:42:56 -0800 Message-ID: <41ADE6F8.7080803@priorartisans.com> Date: Wed, 01 Dec 2004 09:44:56 -0600 From: Paul Christmann User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Problems with deployment process using Eclipse + Ant + Tomcat References: <00d701c4d739$3b62b990$76a7a8c0@nils> In-Reply-To: <00d701c4d739$3b62b990$76a7a8c0@nils> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N We use ant build scripts (launched from eclipse, anthill, command prompts, just about anywhere) to deploy webapps to Tomcat and it works fine for us. But we did have difficulties when we started doing so. We are currently using Tomcat 5.0.28; we've done it for a long time on Tomcat 4.1; we've tested it on Tomcat 5.5, but I can't say that it worked - we had other issues (unrelated to ant or Tomcat) that got in the way. Its been a while since I went through these problems, but here's my recollections: a) There are several tasks in the catalina-ant.jar. In particular, though, there are two different sets of tasks that can be used for deploying webapps: / and /. You cannot a 'd app nor can you an 'd app. I don't fully recall the difference between those sets of tasks, but we discovered that the / tasks worked better for us. b) We change the unpackWars attribute in the element of the server.xml from true (its default value on a Windows installation) to false. Without this change, Tomcat unpacked the deployed webapp, which caused difficultied with the removal (files weren't removed) which then prevented redeployment. c) Side note about your ant scripts: your "deploy" target uses a bunch of ant calls to do different things (build, war, tomcat_deploy and email). In each case you are passing inheritrefs=true and inheritall=true and calling targets in the same build file. You'd probably be better off just doing this as dependencies instead: I hope that helps, -- PC Paul Christmann Prior Artisans, LLC mailto:paul@priorartisans.com 504-587-9072 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org