Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 67028 invoked from network); 30 Dec 2005 16:59:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Dec 2005 16:59:43 -0000 Received: (qmail 30604 invoked by uid 500); 30 Dec 2005 16:59:31 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 30539 invoked by uid 500); 30 Dec 2005 16:59:30 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 30528 invoked by uid 99); 30 Dec 2005 16:59:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2005 08:59:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.181.65.237] (HELO sun.savoirtech.com) (209.181.65.237) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Dec 2005 08:59:30 -0800 Received: from [206.197.197.27] ([206.197.197.27]) by sun.savoirtech.com (8.13.4/8.13.4) with ESMTP id jBUGx4rS027953 for ; Fri, 30 Dec 2005 09:59:05 -0700 Message-ID: <43B56761.3090705@apache.org> Date: Fri, 30 Dec 2005 09:59:13 -0700 From: Jeff Genender Reply-To: jgenender@apache.org Organization: Apache Geronimo User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: An issue about TomcatGeronimoRealm References: <43B55D34.3080405@apache.org> In-Reply-To: <43B55D34.3080405@apache.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on sun.savoirtech.com X-Virus-Scanned: ClamAV 0.87.1/1219/Wed Dec 28 15:57:59 2005 on sun.savoirtech.com X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-105.2 required=5.6 tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.4 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Jian, I am sorry, I had to read your problem closer to get the gist of the problem...so here is a second go on this: Upon closer inspection of this... /jetspeed/* should be picked up fine in the getServletName(). Upon running some tests, it seems fine. You stated your web app context is named "jetspeed", and thus this is probably causing your problem. Since you called it "jetspeed", this is the context portion and thus is not part of the relative URI. Thus, the http://localhost:8080/jetspeed/ URL's relative URI truly is "default" or "/". With that context name, the way you will get this to work in your configuration is with this URL: http://localhost:8080/jetspeed/jetspeed/ If you want http://localhost:8080/jetspeed/ to work, then you must set the context-root to / in your plan/geronimo-web.xml. Jeff Jeff Genender wrote: > Remove the forward slash and it will give you what you are looking for. > > Please try this: > > > jetspeed > jetspeed/* > > > > Jian Liao wrote: >> Hi all, >> I am running Jetspeed on geronimo-tomcat-j2ee-1.0-2005-12-22. My jetspeed >> web app context is jetspeed and I also have a servlet named "jetspeed" >> defined in web.xml. When there is request for url: >> http://localhost:8080/jetspeed/. The private method getServletName(Request >> request) defined in TomcatGeronimoRealm will return a "default" string, is >> that what it expects?(I know default is configured by tomcat, >> http://tomcat.apache.org/tomcat-5.5-doc/default-servlet.html) >> Why it does not return "jetspeed", I did have a servlet named that. The >> following is a snippet from my web.xml. >> >> >> jetspeed >> org.apache.jetspeed.engine.JetspeedServlet >> >> >> properties >> /WEB-INF/conf/jetspeed.properties >> >> >> applicationRoot >> webContext >> >> 1 >> >> ...... >> >> jetspeed >> /jetspeed/* >> >> >> Any help would be appreciated! >> >> - Jian Liao >> >