Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB6F275F3 for ; Fri, 28 Oct 2011 19:34:59 +0000 (UTC) Received: (qmail 56777 invoked by uid 500); 28 Oct 2011 19:34:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 56667 invoked by uid 500); 28 Oct 2011 19:34:56 -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 56658 invoked by uid 99); 28 Oct 2011 19:34:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 19:34:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 19:34:49 +0000 Received: from [192.168.245.129] (p549E0956.dip0.t-ipconnect.de [84.158.9.86]) by tor.combios.es (Postfix) with ESMTPA id D680DDA043B for ; Fri, 28 Oct 2011 21:34:25 +0200 (CEST) Message-ID: <4EAB03C3.9070503@ice-sa.com> Date: Fri, 28 Oct 2011 21:34:27 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Static files not being displayed References: <4EAAFDCB.2090503@ice-sa.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Francis GALIEGUE wrote: > On Fri, Oct 28, 2011 at 21:08, André Warnier wrote: >> Rajkumar Singh wrote: >>> Hello guys, >>> >>> I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux. >>> >>> I created a war file named ROOT.war and dropped it under the tomcat >>> "webapps" folder. The WAR consists of JSP, JAR, XML and static files like >>> images, javascript and CSS. >>> >>> The tomcat expanded the WAR file properly and I was able to get to the >>> dynamic files of my application through the URL. However what I noticed was >>> that all the static files are not fetched from the server. I get 404 error >>> in my firebug (Using firefox as my browser). >>> >>> And the dynamic files are shown correctly, no problem with that. Even my >>> application is making the database call and making right transaction with it >>> >>> Can someone please help me in resolving the issue? Is there any >>> configuration that needs to be done on the tomcat server. To let you all >>> know, this is the first time I am working on the tomcat 6 version. >>> >> To my knowledge, there is nothing "special" in terms of configuration >> required to allow Tomcat to serve static files, if they are in the right >> place. >> (Of course, this applies to a "standard" Tomcat downloaded from >> tomcat.apache.org; things may be different for pre-packaged Tomcat's from >> other sources). >> >> To get more help, you will need to provide some additional information. >> Since you are using firebug, you should be able to see which exact URL the >> browser requests for one of these static elements. >> Give us an example, and also tell us the path of this same element on disk. >> What may also help is the content of the ./WEB-INF/web.xml file of your >> application, and the ./META-INF/context.xml if there is one (all comments >> and passwords removed). >> >> And also tell us where you got your Tomcat from, and where you find Tomcat's >> "server.xml" file. >> >> > > I'd say, first, configure an AccessLogValve and give the output of it. > Tomcat definitely cannot find the requested files and there has to be > a reason for it. > There is certainly a reason, but we don't know yet if it is really Tomcat sending the 404 replies. The access log would help, presuming the requests really go to that same Tomcat. But the firebug data should tell us that. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org