Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 37479 invoked from network); 28 Oct 2001 07:12:35 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 28 Oct 2001 07:12:35 -0000 Received: (qmail 2275 invoked by uid 97); 28 Oct 2001 07:12:44 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2264 invoked from network); 28 Oct 2001 07:12:43 -0000 Message-ID: <6011564839A8D511806000025508C21327027A@riymsg05.stc.com.sa> From: Hans Westling To: "'tomcat-user@jakarta.apache.org'" Subject: Servlet's constructor called at every request ! Date: Sun, 28 Oct 2001 10:12:54 +0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all, I would ask you all to go back in time with me, to the JServ era. We are using a 3rd party software package that is based on Apache 1.3.12 and JServ 1.1.2 (running on Solaris). Now I have some problems with it and I hope someone can help me. Please don't tell me to upgrade to Tomcat 4.0. I know it's a superior product but I'm stuck with JServ for now. The problem I'm having is that I would to initialise a logging object (log4j) in my servlet. The init() method of the servlet would be great for that, but it didn't work. Whatever I did, my init() wouldn't get called. I checked and double checked the method's signature, searched mailing archives and groups.google.com, but I didn't find anything usefull. Then I decided the use the constructor of the servlet to do the initialisation. Now I have the opposite problem. The constructor get called at _every_ request. So it seems my servlet gets recreated at every request. I don't think this is the way it is supposed to work. Can someone please tell me what I'm doing wrong or at least point in me in the right direction ? I will post configuration details on request. Thanks, Marcel -- To unsubscribe, e-mail: For additional commands, e-mail: