Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 72840 invoked from network); 19 Apr 2007 14:04:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 14:04:43 -0000 Received: (qmail 6821 invoked by uid 500); 19 Apr 2007 14:04:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 6794 invoked by uid 500); 19 Apr 2007 14:04: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 6765 invoked by uid 99); 19 Apr 2007 14:04:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 07:04:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of rashmi.sub@gmail.com designates 66.249.82.238 as permitted sender) Received: from [66.249.82.238] (HELO wx-out-0506.google.com) (66.249.82.238) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 07:04:14 -0700 Received: by wx-out-0506.google.com with SMTP id i26so585370wxd for ; Thu, 19 Apr 2007 07:03:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RVsUrT7Lsom+0viH43nhbBxcWz78Uu9+q+zC/E6mtQLTyNBHntmDmaD8Q83gzeYqT9m+9lrj4bY6NsuS7+6VGbbK39yNWVQVxZJEyZZ3HmNQDRA6ea7+/J++ZjHU0EaZoC8ygKH6IltK+t7FLBiuzXzc6Mmu4znvuWygsL6wFcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=owIQZLC1DuUicLf0JU+gLI95r/Vhue2rOnS1wGWfdBVIT8Fckzb1MrU+YJtbiAyoOoRwL2m7av8geTcH5ORqV5E7fT7vsPSguSyhAQjpmfqu/0101xh6IqKOWSstDFoZr1Rxm+nEPpfhWyvVpm9VEJe8kSRd5d7lnRiDSfWRnU8= Received: by 10.90.75.10 with SMTP id x10mr1775984aga.1176991433043; Thu, 19 Apr 2007 07:03:53 -0700 (PDT) Received: by 10.90.36.5 with HTTP; Thu, 19 Apr 2007 07:03:52 -0700 (PDT) Message-ID: <3ef28230704190703hfcb5e32i8f10108c0f6528c4@mail.gmail.com> Date: Thu, 19 Apr 2007 10:03:52 -0400 From: "Rashmi Rubdi" To: "Tomcat Users List" Subject: Re: Getting a project deployed In-Reply-To: <933844870704190648u94d16c6q1776ff7fd03fe34c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <933844870704171529m1aa5f01em354297c745c0e620@mail.gmail.com> <3ef28230704172111s5692dde3v5be2cfef11ec6ebb@mail.gmail.com> <933844870704172204t7fb642b4le7683b2770748da1@mail.gmail.com> <3ef28230704172238v2591c3b6t9fed947ce3b51798@mail.gmail.com> <933844870704181418r4d198af2i6f4c7dba69f57e6e@mail.gmail.com> <3ef28230704181427w73b127besf16ea7adfcba4af0@mail.gmail.com> <933844870704181441k44b75cfekbfe464c7b0419b39@mail.gmail.com> <3ef28230704181604i455a88ebr255ce17ac3479f14@mail.gmail.com> <933844870704190648u94d16c6q1776ff7fd03fe34c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Ok, if you insist on having an Apache Httpd (even though you may or may not need it), someone on this list might help you further configure it. But I just wanted to say a few things... my reply is below... On 4/19/07, John Calsbeek wrote: > Yeah, this isn't my webserver. I'm not excited about pulling out an > existing Apache setup... > > On 4/18/07, Rashmi Rubdi wrote: > > It is most likely that the project is not configured properly. We can > > fix the 404 error by properly configuring your project for Tomcat > > alone. > > > > For starters, what is the absolute path of this index.jsp from the > > root folder of the Linux machine? > > /srv/www/tomcat5/base/webapps/jmarks/index.jsp Normally in Tomcat a JSP page with the above absolute path is accessible at http://localhost:8080/jmarks/index.jsp , where jmarks is known as the conte= xt As Hassan mentioned earlier you would be able to change the port to 80 , the port configuration is in server.xml , look for where it says 8080 (only in case you want to change it in Tomcat and not through Apache). > > /srv/www/tomcat5/base/webapps/jmarks is aliased with Apache to the > HTTP path /path/to/jmarks The above aliasing of paths also works in Tomcat alone with the use of Filters. The aliasing is commonly known as URL Rewriting - normally people write their own Filters or download and install a pre-written one - Google will help here. > > When I had this folder directly in /srv/www/htdocs/path/to/jmarks, I > had the same problem=97*.html works fine, *.jsp does not. Check the configuration of the above aliasing. Normally URL Rewriting is done in a sequence, the first matching path pattern is applied, so it helps to check all patterns and see which is the first one that's being applied. -Rashmi --------------------------------------------------------------------- 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