executed when Tomcat loads the Servlet.
I hope this helps better clarify the situation.
Justin.
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Date: Wed, 3 Dec 2008 20:46:50 -0600
Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading
From: Justin Randall [mailto:[EMAIL PROTECTED
From: Justin Randall [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading
Each Servlet in the application has
load-on-startupX/load-on-startup where X represents the
numeric order in which I've assigned them to start.
Then yes, there's a problem, since your
(ServletConfig).
Chris
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 7:22 AM
To: Tomcat Users List
Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading
From: Justin Randall [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat 6.0.18 Servlet
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris,
Chris Hut wrote:
If you override: public void init(ServletConfig config), you MUST call
super.init(config). If you don't, the config member of the base servlet
class won't get set, which could cause problems downstream.
It's also a good
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat 6.0.18 Servlet Loading/Reloading
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
It's also a good idea to call this.init() as well, since that's the
expected behavior established by GenericServlet.
Or just do
I've been doing some more testing and added a bunch of System.out.println
statements to the init, init(ServletConfig), and doPost/doGet methods so
that I could see what my application was doing without log4j initialized.
Basically when I restart Tomcat, it doesn't call any of the init methods
From: Justin Randall [mailto:[EMAIL PROTECTED]
Subject: RE: Tomcat 6.0.18 Servlet Loading/Reloading
Basically when I restart Tomcat, it doesn't call any of the
init methods of the Servlet
Unless you have load-on-startup set for the servlet in your webapp's
WEB-INF/web.xml, that is correct