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-startup>1</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]
