Re: init() methods, not knowing if this is the cause of the errant behavior but FYI just in case:
Per the API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/GenericServlet.html 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. public void init() - no parameters - is intended to be a convenience method that you can override and not have to remember to call super.init(). It is invoked by GenericServlet.init(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 Loading/Reloading > > Each Servlet in the application has > <load-on-startup>X</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 servlets should have been initialized upon restart. > Lastly, the reason I say "init' methods is that there > IS more than one, and Tomcat calls both of them when > initializing a Servlet. Strictly speaking, that's true, but the parameterless one is intended to be called by the other. There's no need to override both methods, and I'm not sure what happens when you do. The normal implementation is just to override init(), and let GenericServlet.init(ServletConfig) call that one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]