Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 96595 invoked from network); 3 Jun 2000 23:58:21 -0000 Received: from w153.z209031224.sjc-ca.dsl.cnc.net (HELO edamame.stinky.com) (qmailr@209.31.224.153) by locus.apache.org with SMTP; 3 Jun 2000 23:58:21 -0000 Received: (qmail 15977 invoked by uid 510); 3 Jun 2000 16:52:26 -0000 Date: Sat, 3 Jun 2000 09:52:26 -0700 From: Alex Chaffee To: tomcat-user@jakarta.apache.org Subject: Re: war files and directories Message-ID: <20000603095226.F3663@edamame.stinky.com> Reply-To: alex@jguru.com References: <393964F4.EA60057F@sympatico.ca> <007f01bfcda7$916dfc00$5b32ffd1@prodigy.net> <393978B2.B78B774F@sympatico.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <393978B2.B78B774F@sympatico.ca>; from brian.g@sympatico.ca on Sat, Jun 03, 2000 at 05:29:22PM -0400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Sat, Jun 03, 2000 at 05:29:22PM -0400, Brian Gordon wrote: > Thanks, > I'll try that. However, when I want to deploy, how do I create a war file? > And just what does it DO anyway? > > Brian You create it with the jar tool, it's a jar file, just with a different extension. The purpose is cross-server deployment -- in theory, you jar up your whole application, and copy it to the new server, and poof! it's deployed. Unfortunately, it's not quite so simple in the current Tomcat; I advise avoiding WARs until they clean up the deployment process. Basically, to deploy a WAR, you have to: 1. make an entry in server.xml 2. copy foo.war to TOMCAT/webapps/ 3. delete existing directory TOMCAT/webapps/foo/ 4. restart Tomcat