Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 1532 invoked from network); 6 Dec 2010 19:58:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 19:58:20 -0000 Received: (qmail 67685 invoked by uid 500); 6 Dec 2010 19:58:16 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67534 invoked by uid 500); 6 Dec 2010 19:58:16 -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 67525 invoked by uid 99); 6 Dec 2010 19:58:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 19:58:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of victor.kabdebon@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 19:58:12 +0000 Received: by ywl5 with SMTP id 5so70504ywl.18 for ; Mon, 06 Dec 2010 11:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=EhEAXxv9jRVocsFyW0a0oE3/AFNV1lMzo9wSTBeEuhM=; b=c5Cd+GatmnVVpLB8nZv5HpkH5/WVOuualualUtB/asS2TdelrDLWBWY2Snoy/DEszY csaZmnsoh/D/zN2I3nnud6eaANGtL96SSBLP09fa12xM5GRXJroz4jhD4XPkUYTCG7D3 cW+DYgg378huTi16oeLTFl94UjwodTrikq7ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=esBMmbDzir0KDyacVUYG1UtOD237a5iq0PlOYiC3mRvHJumR9QOT67IrFW5a8V0x9a 1qFlbopY+mQty1U1j1iI+ANtaI9wJJeFwcBgJxislJIU2l+Y/OCLCLn4uo3xAF3/Bdqv sTV3Cnh8rqHErmTQH0rEvNnE0XaeuAtKHKWPE= Received: by 10.42.167.6 with SMTP id q6mr1579985icy.282.1291665471234; Mon, 06 Dec 2010 11:57:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.224.71 with HTTP; Mon, 6 Dec 2010 11:57:30 -0800 (PST) In-Reply-To: References: <99C8B2929B39C24493377AC7A121E21F9A09ACF9D2@USEA-EXCH8.na.uis.unisys.com> From: Victor Kabdebon Date: Mon, 6 Dec 2010 14:57:30 -0500 Message-ID: Subject: Re: war file question To: Tomcat Users List Content-Type: multipart/alternative; boundary=90e6ba6e8b8894e4600496c34dd4 --90e6ba6e8b8894e4600496c34dd4 Content-Type: text/plain; charset=ISO-8859-1 Hi, May I add something Lava, if you don't want to work around war manually use Netbeans or Eclipse as your IDE and they can do it for you without any effort. Victor Kabdebon 2010/12/6 Konstantin Kolinko > 2010/12/6 Lava Saleem : > > Hi > > Thanks for the replies > > Pid thanks for the link but I have looked into before sending the email > and > > it is very general and not very useful, as I'm a beginner user for > tomcat. > > Check I was deploying the file with jsp extension and I got this > > message on the top of the tomcat webpage. Now I have my html file in the > > WEB-INF I changed the extension to war but that didn't work as it didn't > > work if I left it as html extension. it is very simple file with few > lines > > of java script. > > Thanks > > 1. WAR is effectively a zip archive. You create one using the "jar" > archiver program in the JDK. > > http://download.oracle.com/javase/6/docs/technotes/tools/windows/jar.html > > That is: you have to prepare the files for your web application and > then "zip" them with the jar utility. > > E.g. for the examples webapp that comes with Tomcat: > 1) go to > $CATALINA_BASE/webapps > 2) run > jar -cf examples.war -C examples . > > it will pack the "examples" directory into a war file. > > > 2. The WEB-INF and META-INF subdirectories are special. They are not > "visible" from the outside. So, you should not put your .html, or .js, > or .css or images there. > > The WEB-INF directory is for configuration (the web.xml file is the > main one there) and for executable code. > > You should place your web page elsewhere. Usually - at the root of your > webapp. > > See the ROOT application that comes with Tomcat, You will find an > index.html there. > > (ROOT is the special name for the default webapp on Tomcat). > > > 3. There should be tutorials for beginners somewhere. (One is that Pid > mentioned). > > You should really go step-by-step with a one of them once. > > The links to the official specifications can be found here: > http://wiki.apache.org/tomcat/Specifications > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --90e6ba6e8b8894e4600496c34dd4--