Re: New bie problem about Tomcat
There could be a couple of reasons. One of them: you could possible have declared the servlet twice in the web.xml. Check if other servlets in the same webapp are getting initialized twice. This may a some way in helping you pinpoint where the problem is. Check that you don't have the duplicate Contexts mapped to the same docBase. Check that the elements in the web.xml are in the correct order. RS [EMAIL PROTECTED] (Krishna Bhamidi) on 02/23/2002 11:28:57 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: New bie problem about Tomcat Hi, I have a problem about a servlet that I want to start on load of Tomcat. I included into the web.xml for the application under the on-load. The init method of the servlet is called two times, but not the service method of the servlet. I am not sure why the init method should get called 2 times? We are using Tomcat 4.0 on Apache. What do we do to execute a servlet on web-server startup? Krishna. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
New bie problem about Tomcat
Hi, I have a problem about a servlet that I want to start on load of Tomcat. I included into the web.xml for the application under the on-load. The init method of the servlet is called two times, but not the service method of the servlet. I am not sure why the init method should get called 2 times? We are using Tomcat 4.0 on Apache. What do we do to execute a servlet on web-server startup? Krishna.
RE: New bie problem about Tomcat
the service in not supposed to be called at init load time. notice the request response parameters in it. this is called by http get or post don't know why it loads twice.. B -Original Message- From: Krishna Bhamidi [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 23, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: New bie problem about Tomcat Hi, I have a problem about a servlet that I want to start on load of Tomcat. I included into the web.xml for the application under the on-load. The init method of the servlet is called two times, but not the service method of the servlet. I am not sure why the init method should get called 2 times? We are using Tomcat 4.0 on Apache. What do we do to execute a servlet on web-server startup? Krishna. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]