Hi Chuck, Thanks for the response. I guess perhaps I was not clear enough in my configuration or description of the issue.
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. Also what I did mention previously is that "init" is NOT called when I browse to the URI, however the Servlet is loaded as my System.out.println statements in "doGet/doPost" are being output to catalina.out and they also show that "init" was never called (by checking parameters that should have been initialized by "init". Lastly, the reason I say "init' methods is that there IS more than one, and Tomcat calls both of them when initializing a Servlet. If you think this is incorrect, make sure to @Override both "init" and "init(ServletConfig config)" and have different logging statements. You will see both of them being 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] > > 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 behavior for a Tomcat restart. The init() > method (there can only be one per servlet) should be called upon first > reference to a URL that matches a <url-pattern> element inside one of your > <servlet-mapping> elements. If <load-on-startup> is set, the init() method > will be called at Tomcat restart for each such servlet. > > > however all of the initialization which was to be > > performed by the "init" methods was never done. > > You keep using the word "methods" when there is only one init() method for a > given servlet; why is that? > > > When I copy the existing war file from the webapps directory > > to another location, update the modify timestamp and then > > move it back into the webapps directory, the "init" methods > > are then called and the application works properly. > > This is also correct behavior for initial or re-deployment. Although the > spec doesn't require it, Tomcat calls the init() methods to verify webapp > viability at these times. > > - 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] > _________________________________________________________________