RE: Preloaded servlet runs init twice
Howdy, This is known issue. A known issue? It's a repeating case of user error, there's nothing wrong with tomcat in this case. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [inbox] RE: Preloaded servlet runs init twice
Hello, Shapira,! You wrote to Tomcat Users List [EMAIL PROTECTED] on Wed, 5 Nov 2003 09:07:19 -0500: SY Howdy, This is known issue. SY A known issue? It's a repeating case of user error, there's nothing SY wrong with tomcat in this case. I didn't told that it is an error. It is a known issue because it not an obvious that you have to keep your aplication out of the webapps directory, or do not define you app in server.xml, or disable default app deployment for the host. But if you have to have your app defined in server.xml (resources, logs, etc.) you left with no choice. AFAIK this point is not covered in the documentation, this why there are users struggling with it. --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [inbox] RE: Preloaded servlet runs init twice
Howdy, A known issue is something that needs fixing. There's nothing in tomcat that needs fixing here. If the user doesn't read or doesn't understand the Context configuration reference, or the Automatic Application Deployment page it links to, that user has a problem. Of course, tips on improving documentation are always welcome and usually quickly applied. Yoav Shapira Millennium ChemInformatics -Original Message- From: IvanLatysh [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 10:44 AM To: Tomcat Users List Subject: Re: [inbox] RE: Preloaded servlet runs init twice Hello, Shapira,! You wrote to Tomcat Users List [EMAIL PROTECTED] on Wed, 5 Nov 2003 09:07:19 -0500: SY Howdy, This is known issue. SY A known issue? It's a repeating case of user error, there's nothing SY wrong with tomcat in this case. I didn't told that it is an error. It is a known issue because it not an obvious that you have to keep your aplication out of the webapps directory, or do not define you app in server.xml, or disable default app deployment for the host. But if you have to have your app defined in server.xml (resources, logs, etc.) you left with no choice. AFAIK this point is not covered in the documentation, this why there are users struggling with it. --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preloaded servlet runs init twice
Tomcat 4.1.27 Windows XP JDK 1.3 In a secondary instance of Tomcat (CATALINA_BASE=c:\myapp) I have a servlet defined to preload load-on-startup1/load-on-startup The problem is that the init() method is run twice. If I remove the context definition for the web application, the preloaded servlet only runs init() once (but then I can access it because there is no path mapping.) What am I missing? Mitch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preloaded servlet runs init twice
Hello, [EMAIL PROTECTED] You wrote to [EMAIL PROTECTED] on Tue, 4 Nov 2003 13:47:04 -0600: mtc Tomcat 4.1.27 mtc Windows XP mtc JDK 1.3 mtc In a secondary instance of Tomcat (CATALINA_BASE=c:\myapp) I have a mtc servlet defined to preload load-on-startup1/load-on-startup mtc The problem is that the init() method is run twice. If I remove mtc the context definition for the web application, the preloaded mtc servlet only runs init() once (but then I can access it because mtc there is no path mapping.) This is known issue. You can create an empty folder, for example webapps_empty and point your Host to this folder Host name=yahoo.com debug=0 appBase=webapps_empty unpackWARs=false autoDeploy=false It will prevent Tomcat from deploying founded applications in the appBase folder. and now in Context you put path to your context Context path= docBase=/myapp ... now your init should run only once. --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]