Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 37877 invoked from network); 24 Apr 2006 10:35:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 10:35:02 -0000 Received: (qmail 2126 invoked by uid 500); 24 Apr 2006 10:34:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2102 invoked by uid 500); 24 Apr 2006 10:34:24 -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 2091 invoked by uid 99); 24 Apr 2006 10:34:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 03:34:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.140.77.184] (HELO mail.schoenhaber.de) (217.140.77.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 03:34:24 -0700 Received: from localhost (unknown [127.0.0.1]) by mail.schoenhaber.de (Postfix) with ESMTP id 78D93703AF3F for ; Mon, 24 Apr 2006 10:34:02 +0000 (UTC) Received: from mail.schoenhaber.de ([127.0.0.1]) by localhost (mail.schoenhaber.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32158-14 for ; Mon, 24 Apr 2006 12:33:57 +0200 (CEST) Received: from Gimli.schoenhaber.de (Gimli [192.168.42.6]) by mail.schoenhaber.de (Postfix) with ESMTP id 0517C703AF3E for ; Mon, 24 Apr 2006 12:33:57 +0200 (CEST) From: Markus =?iso-8859-1?q?Sch=F6nhaber?= Reply-To: tomcat-user@jakarta.apache.org To: "Tomcat Users List" Subject: Re: Preload of servlet does not work with Tomcat 5.5.15 Date: Mon, 24 Apr 2006 12:33:56 +0200 User-Agent: KMail/1.9.1 References: <444C6DDE.8040001@bednarz.ch> <200604240856.33828.mailing-tomcat-user@schoenhaber.de> <444CA1B9.3070409@bednarz.ch> In-Reply-To: <444CA1B9.3070409@bednarz.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200604241233.56774.mailing-tomcat-user@schoenhaber.de> X-Virus-Scanned: amavisd-new at schoenhaber.de X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tom Bednarz wrote: > Markus Sch=F6nhaber wrote: > >WAG: maybe you did overload GenericServlet#init instead of overriding it. > > But I doubt that anyone can tell for sure with so little information > > provided. > > Don't know what you mean with that. Here is part of my servlet code: > > public final class MTWInit > extends HttpServlet > implements Runnable > { > ....... > public void init(ServletConfig config) throws ServletException > { > super.init(config); [...] OK, you did override GenericServlet#init(ServletConfig). I created a minimal webapp using the web.xml snippet from your OP (classnam= e=20 adjusted) and a servlet containing this init-method: @Override public void init(ServletConfig config) throws ServletException { super.init(config); System.out.println("init called"); } On server startup or redeployment of the webapp, "init called" will appear = in=20 catalina.out. In other words: it works just fine for me. The only other obious reason I can think of why it might not work for you i= s=20 that you got the classname/packetname wrong in your web.xml's =20 element. But you have undoubtedly already checked that. So I'm out of ideas. Regards mks --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org