Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 22707 invoked from network); 8 Dec 2010 21:24:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Dec 2010 21:24:29 -0000 Received: (qmail 5537 invoked by uid 500); 8 Dec 2010 21:24:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 5340 invoked by uid 500); 8 Dec 2010 21:24:25 -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 5327 invoked by uid 99); 8 Dec 2010 21:24:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 21:24:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.53.210] (HELO nm18-vm0.bullet.mail.ac4.yahoo.com) (98.139.53.210) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Dec 2010 21:24:17 +0000 Received: from [98.139.52.191] by nm18.bullet.mail.ac4.yahoo.com with NNFMP; 08 Dec 2010 21:23:56 -0000 Received: from [98.139.52.175] by tm4.bullet.mail.ac4.yahoo.com with NNFMP; 08 Dec 2010 21:23:56 -0000 Received: from [127.0.0.1] by omp1058.mail.ac4.yahoo.com with NNFMP; 08 Dec 2010 21:23:56 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 408907.87808.bm@omp1058.mail.ac4.yahoo.com Received: (qmail 75251 invoked by uid 60001); 8 Dec 2010 21:23:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291843436; bh=MSs1x2NwWdVKbEfX+cRjRL0QNo8BfcyZakc2h941rac=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=YKuv8/orbsp6Rp87nVKxbM/69XJNWzcZPwgDhSsEJLUkdDCfJ+9XUNgHRxPCrPFObptna2f3pY/lMFHA7U/XfUYIwQpDhv6QSsfnySaCCHKwqYNIV1jtXpm96Nl8KMkSvjwal0q9ru0AT8aWQwnRPTs/S5/+vNbU54+PrVEB6XM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EgHgKxzHtpOjvDW5+WGxvz4eEI1oGY5f6uSDnOzheUZo79HohFFrS3TSZTiP7Ylksl73WC27YHnoimH9DdZtU5jetpj2JrHwGgio/OleL54CX+0FeQRFkamXpasREg+4XC5/0RdNGw5+E3Vc2MwdfckjCVY7J1fJZFjBN2b5z98=; Message-ID: <191772.64733.qm@web56601.mail.re3.yahoo.com> X-YMail-OSG: u3R.Te0VM1kW2ZaJ_GZVkJ4yaAUmgGDMRI.ZxDLGgNjiM01 gMKWBr0mZyOWRRjEa.BvnhFHE_aGPepko1_0EahVollKQfKTXP2A3vWj5CII exEqteVDmisaJCwQo0kiBo2aVJJJXcqBy1e1mi2o_sKGMOcZNXdHAywZYiEY VBpm1GkEVIKTnfZuKpKqrxQyDGVsj0keiI5zyZksig8tkwt6bi5WuxxEqdMi myvO5p3sXJ73CSe_oTM7llFvrkOzEnv93_7Rih3I64rE9hUFmBEEtIQS4gy8 AA6bdsvdkez_6mmoqLvv96MPwWgsFZU61WwpPdcpOKlsoI_lPJPoOSoSnOxa qdzJ72YWr5xO9kt5IPIKa0_oK5RMeSFZcXLeDKgICKlqN4w-- Received: from [71.133.241.161] by web56601.mail.re3.yahoo.com via HTTP; Wed, 08 Dec 2010 13:23:56 PST X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259 References: <4CFFE0BE.4020304@christopherschultz.net> Date: Wed, 8 Dec 2010 13:23:56 -0800 (PST) From: Mark Eggers Subject: Re: HTTP status 404 To: Tomcat Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Lava,=0A=0A=0APlease read the following:=0A=0Ahttp://tomcat.apache.org/tomc= at-6.0-doc/appdev/deployment.html=0A=0APay particular attention to:=0A=0Aht= tp://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html#Standard_Direc= tory_Layout=0A=0A=0A(please note the above link is line-wrapped)=0A=0AHere'= s an example. Each line level is a subdirectory. Comments are in =0Aparenth= eses.=0A=0AStatic (top folder - application name)=0A=E2=94=9C=E2=94=80=E2= =94=80 (jsp, html, js, css, etc. - can have subdirectories)=0A=E2=94=9C=E2= =94=80=E2=94=80 META-INF (context.xml, not required - see Tomcat documentat= ion)=0A=E2=94=94=E2=94=80=E2=94=80 WEB-INF=0A =E2=94=9C=E2=94=80=E2=94= =80 classes (where the java classes you wrote go)=0A =E2=94=9C=E2=94=80= =E2=94=80 lib (where jar files - yours or third party libraries go)=0A = =E2=94=94=E2=94=80=E2=94=80 web.xml (deployment descriptor - read the stand= ard)=0A=0AA minimal Tomcat 6 deployment descriptor for an application conta= ining only =0Astatic resources could be:=0A=0A=0A=0AStatic Application=0AHTML, CSS, and JS application=0A = =0A index.html=0A = =0A=0A=0A(note again that the third / fourt= h line of the web-app element is line-wrapped)=0A=0AThe index.html file wou= ld go under Static (Static->index.html).=0A=0AThe web.xml file would go und= er Static->WEB-INF (Static->WEB-INF->web.xml).=0A=0AYou would display this = application by copying the entire directory structure to =0A$CATALINA_HOME/= webapps, starting Tomcat, and then browse to =0Ahttp://localhost:8080/Stati= c/ (provided you have not changed the default =0Aserver.xml.=0A=0AIf you wa= nt to make a war file, then go to the parent directory and issue the =0Afol= lowing command from the command line:=0A=0Ajar tf Static.war Static=0A=0APl= ease note that case is important. This will create Static.war which can the= n =0Abe deployed using Tomcat's manager application (or copying Static.war = to =0A$CATALINA_HOME/webapps).=0A=0A. . . . just my two cents.=0A=0A/mde/= =0A=0A=0A----- Original Message ----=0AFrom: Lava Saleem =0ATo: Tomcat Users List =0ASent: Wed, December 8= , 2010 12:12:18 PM=0ASubject: Re: HTTP status 404=0A=0AHi Chris=0AThanks fo= r the reply=0A=0A>Didn't you ask this same question the day before yesterda= y? Have you=0Aread all the replies and questions?=0A=0ANo this one is a dif= ferent question & yes I have read the replies and went=0Athrough the docume= ntation=0A=0A>What does all that mean? Are those file paths? Are they descr= iptions of=0Ahow you have concatenated files together? It doesn't make any = sense to me.=0A=0Ayes those are the folder path as you may see, I have fil= ename.htm with=0Aweb.xml with META-INF with classes with lib in a folder ca= lled WEB-INF this=0Afolder is in a folder called filename, filename is in= the webapp folder.=0A=0A>What URL did you request? What resource did you e= xpect it to serve?=0Ayes I have the url and I can't think of any resources = needed thats why Iam=0Aasking the question=0A=0A=0AThanks=0A=0ALava=0A=0AOn= Wed, Dec 8, 2010 at 2:47 PM, Christopher Schultz <=0Achris@christopherschu= ltz.net> wrote:=0A=0A> -----BEGIN PGP SIGNED MESSAGE-----=0A> Hash: SHA1=0A= >=0A> Lava,=0A>=0A> Didn't you ask this same question the day before yester= day? Have you=0A> read all the replies and questions?=0A>=0A> On 12/8/2010 = 2:39 PM, Lava Saleem wrote:=0A> > I have a single page html file with java= script embadded in it, I have=0A> > created a war file for it and deployed= it successfully but when I click=0A> on=0A> > the page I get the below err= or, the structure of my war file is the=0A> > following=0A> >=0A> > webapp = --> filename --> WEB-INF--> filename.htm + web.xml + META-INF=0A> > + cla= sses + lib=0A>=0A> What does all that mean? Are those file paths? Are they = descriptions of=0A> how you have concatenated files together? It doesn't ma= ke any sense to me.=0A>=0A> > I did not modify the web.xml since I don't ne= ed the servlets do I need to=0A> > modify anything?=0A>=0A> Maybe.=0A>=0A> = > HTTP status 404=0A> > description the requested resource (/filename/)is n= ot available=0A>=0A> What URL did you request? What resource did you expect= it to serve?=0A>=0A> - -chris=0A> -----BEGIN PGP SIGNATURE-----=0A> Versio= n: GnuPG v1.4.10 (MingW32)=0A> Comment: Using GnuPG with Mozilla - http://e= nigmail.mozdev.org/=0A>=0A> iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8p= YL/9Vb3eNZDHncVa3=0A> GAsAoLvpcJjFYd1vb6ufehd41FgB084q=0A> =3DSFt0=0A> ----= -END PGP SIGNATURE-----=0A>=0A> -------------------------------------------= --------------------------=0A> To unsubscribe, e-mail: users-unsubscribe@to= mcat.apache.org=0A> For additional commands, e-mail: users-help@tomcat.apac= he.org=0A>=0A>=0A=0A=0A--=0A=0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org