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 3421D10439 for ; Sat, 11 Jan 2014 21:59:30 +0000 (UTC) Received: (qmail 85137 invoked by uid 500); 11 Jan 2014 21:59:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 85094 invoked by uid 500); 11 Jan 2014 21:58:55 -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 85078 invoked by uid 99); 11 Jan 2014 21:58:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jan 2014 21:58:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.97.132.145] (HELO homiemail-a60.g.dreamhost.com) (208.97.132.145) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jan 2014 21:58:45 +0000 Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id 65BC13BC06E for ; Sat, 11 Jan 2014 13:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=adrian.tarau.org; h= references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; s=adrian.tarau.org; bh=6VJs7Pw0bbeY412QFQ20zxDLyMU=; b=gGI7R6ZJ yDQvLC26bvqdy2U01R14WwMsJowNZRCNktr6dEBj4PJM75m4U4i2V9rxpTyUUwYo nFgXh7Bgm71tO1RoY7XnuaQL6oyNGSbx+N0dxLSmzDOdVfo94si3EG4LozwWTJC+ dq6FF/XanzAbZ5V8mM1uTuxbdR+Rc1QPBBI= Received: from [10.233.88.34] (mobile-198-228-193-207.mycingular.net [198.228.193.207]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mailinglist@adrian.tarau.org) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 5CFD93BC06B for ; Sat, 11 Jan 2014 13:58:22 -0800 (PST) References: <52CF5B15.3060303@adrian.tarau.org> <99C8B2929B39C24493377AC7A121E21FC5D16A6A03@USEA-EXCH8.na.uis.unisys.com> <52D02FEE.6060709@adrian.tarau.org> <99C8B2929B39C24493377AC7A121E21FC5D173AB63@USEA-EXCH8.na.uis.unisys.com> <52D07D5B.3020807@adrian.tarau.org> <52D11184.3050305@apache.org> Mime-Version: 1.0 (1.0) In-Reply-To: <52D11184.3050305@apache.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Cc: Tomcat Users List X-Mailer: iPhone Mail (10B146) From: Adrian Tarau Subject: Re: Getting 404 before the container starts all servlets Date: Sat, 11 Jan 2014 16:58:17 -0500 To: Tomcat Users List X-Virus-Checked: Checked by ClamAV on apache.org Mark, Thank you for your response. The same application started under 6.0 does not= manifest itself like that.=20 The first thing that I did was to put a break point in the first filter, to s= ee if the 404 comes from one of the servlets. I got a 404 without reaching a= ny the break point. I will enable debugging in Tomcat and come back with additional information.= I do not exclude an application issue, however, everything points to Tomcat= at this point. Sent from my iPhone On Jan 11, 2014, at 4:40, Mark Thomas wrote: > On 10/01/2014 23:08, Adrian Tarau wrote: >> I tried with 7.0.47 and I still get 404 regardless of the the state of >> bindOnInit. >=20 > Tomcat doesn't serve *any* requests until everything (including > applications) has started up. bindOnInit only controls when it starts > accepting connections. >=20 > You should only see any response (including 404s) once all the > applications have reported that they have started. >=20 > =46rom what you describe it appears that your application is continuing to= > do some initialisation after it has reported it is started. >=20 > Servlets do use lazy init by default but a request to a servlet should > not complete until after the servlet has finished initialising. >=20 > All the indications are that the 404s you are seeing are a result of how > your application is designed. >=20 > Mark >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org