Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 25681 invoked from network); 18 May 2005 01:54:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 01:54:14 -0000 Received: (qmail 98639 invoked by uid 500); 17 May 2005 20:05:01 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 98527 invoked by uid 500); 17 May 2005 20:05:00 -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 98458 invoked by uid 99); 17 May 2005 20:04:59 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: unknown (hermes.apache.org: error in processing during lookup of toby@caboteria.org) Received: from smtp05.mrf.mail.rcn.net (HELO smtp05.mrf.mail.rcn.net) (207.172.4.64) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 17 May 2005 13:04:57 -0700 Received: from 207-172-209-236.c3-0.ded-ubr1.sbo-ded.ma.cable.rcn.com (HELO mail.caboteria.org) (207.172.209.236) by smtp05.mrf.mail.rcn.net with ESMTP; 17 May 2005 16:04:50 -0400 X-IronPort-AV: i="3.93,115,1115006400"; d="scan'208"; a="39027889:sNHT22543784" Received: by mail.caboteria.org (Postfix, from userid 1000) id 97274C644E; Tue, 17 May 2005 16:04:55 -0400 (EDT) Date: Tue, 17 May 2005 16:04:55 -0400 From: toby cabot To: dev@geronimo.apache.org Subject: Re: [jira] Created: (GERONIMO-645) geronimo/jetty doesn't respect web.xml load-on-startup order Message-ID: <20050517200455.GA27142@caboteria.org> References: <1639797690.1115836639152.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1639797690.1115836639152.JavaMail.jira@ajax.apache.org> User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, May 11, 2005 at 08:37:19PM +0200, toby cabot (JIRA) wrote: > Geronimo doesn't appear to start servlets in the order specified > by . I started looking at this but I think I've gone as far as I can without some advice. I started by modifying JettyModuleBuilder to create the servlet gbeans in the order specified by the load-on-startup elements, and that worked the first time I ran the server. But not the second time. So I looked into it a little more and found that the BasicDependencyManager stores the dependencies as a set, so when GBeanInstanceState.startRecursive() gets the children (in this case the servlets) to start there's no order to them. So I'm at a loss for what to do. Modifying the dependency manager to use lists instead of sets seems pretty drastic (since some of the methods return sets) but it would probably make the server start up more predictably. But I'm not sure that's enough to ensure that the load-on-startup order is respected all the way through deployment and startup. If anyone has any ideas I'd be happy to put some more legwork into this. Thanks, Toby PS. Ordinarily I'd add comments like this to Jira but it's down: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /jira/secure/BrowseProject.jspa. Reason: Error reading from remote server Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7a DAV/2 SVN/1.2.0-dev Server at issues.apache.org Port 80