Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 33953 invoked from network); 5 Sep 2007 02:58:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 02:58:28 -0000 Received: (qmail 54234 invoked by uid 500); 5 Sep 2007 02:58:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 54208 invoked by uid 500); 5 Sep 2007 02:58:11 -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 54197 invoked by uid 99); 5 Sep 2007 02:58:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 19:58:11 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=MISSING_DATE,RCVD_NUMERIC_HELO,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [70.58.238.114] (HELO 70.58.238.114) (70.58.238.114) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 05 Sep 2007 02:59:21 +0000 From: samk@twinix.com To: users@tomcat.apache.org Message-ID: <15707736.11188961097988.JavaMail.SYSTEM@larkin> Subject: Re: an easier way to deploy war file? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Priority: 1 priority: Urgent Importance: high X-Virus-Checked: Checked by ClamAV on apache.org Date: Wed, 5 Sep 2007 02:59:31 +0000 (UTC) See Thread at: http://www.techienuggets.com/Detail?tx=11882 Posted on behalf of a User Even when you hot or auto-deploy the war file the previous version has to be replaces by extracting content from the new war file. There will be a pause with 404 errors if you hit the URL while the deployment is taking place. As far as I know there's no instant way of doing this. In Response To: Hi Gregor, Thanks, i tried this, it works, sometimes I can see the updated program immediately, but sometimes I got all those 404 errors, I have to wait for a few minutes before I can see the updates reflected, any idea? how to reflect changes asap? Thanks. Gregor Schneider wrote: > > - *never* start tomcat as root: create a user "tomcat" if not already > existing and run tomcat with that user-id > > - if it's not a production-server with very high security, grant > ftp-access to user "tomcat" > > - from your local pc, ftp to your ubuntu, login as user "tomcat" > > - change to directory "www/webapps" > > - put your web-app.war > > that's it > > be sure that autodeploy is set to true. having done so, there's no > need to delete any directories on your ubuntu-server > > cheers > > gregor > > ps: before starting tomcat as user tomcat, you might have to issue > > chown -R tomcat:tomcat * in $CATALINA_HOME > -- > w > -- <...> http://www.nabble.com/an-easier-way-to-deploy-war-file--tf4376062.html#a12490683 Sent from the Tomcat - User mailing list archive at <...>. --------------------------------------------------------------------- To start a new topic, e-mail: noway@spam.com To unsubscribe, e-mail: users-noway@spam.com For additional commands, e-mail: users-noway@spam.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org