Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 88527 invoked from network); 27 Sep 2007 14:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 14:03:16 -0000 Received: (qmail 5120 invoked by uid 500); 27 Sep 2007 14:03:04 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 5053 invoked by uid 500); 27 Sep 2007 14:03:04 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 5028 invoked by uid 99); 27 Sep 2007 14:03:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 07:03:04 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 14:05:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E8B0571420C for ; Thu, 27 Sep 2007 07:02:50 -0700 (PDT) Message-ID: <28814245.1190901770948.JavaMail.jira@brutus> Date: Thu, 27 Sep 2007 07:02:50 -0700 (PDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-379) Registering multiple servlets may hide some In-Reply-To: <32515633.1190789510546.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530730 ] Richard S. Hall commented on FELIX-379: --------------------------------------- Rob Walker has done most of the hacking on this, so perhaps he might have the most valuable input on whether the patch makes sense. However, I am sure you can go ahead and apply it because if it causes issues we can always fix it or rollback. > Registering multiple servlets may hide some > ------------------------------------------- > > Key: FELIX-379 > URL: https://issues.apache.org/jira/browse/FELIX-379 > Project: Felix > Issue Type: Bug > Components: HTTP Service > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Attachments: FELIX-379.patch > > > Consider registering a servlet RootServlet for "/" first and then a servlet SomeServlet for "/some" with different OSGi HttpContext instances in this order with the http.jetty HttpService. This registration works absolutely correct and also creates the necessary setup internally. Unfortunately, when Jetty now receives a request for "/some", it first calls the RootServlet instead of the SomeServlet as would be expected according to the HttpServlet Service specification. > If the servlets are registered SomeServlet first and then RootServlet it works perfectly. > I think it is related to the fact, that the http.jetty bundle registers a jetty context for "/" for each different OSGi HttpContext and jetty asks these registrations in registration order, which may not be correct according to the spec. Probably, there should only be one actual web app registration with jetty and the http.jetty bundle should multiplex between the different OSGi HttpContext instances and select the correct servlets. > I am working a possible solution to this right now. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.