From: Lane S. <la...@op...> - 2004-07-19 16:37:03
|
The only idea I have at this time is to remove the WebMacro.properties=20 file from the war file and place it in your servlet classpath like=20 classes/ and see if this happens. Perhaps, a file open to a war file??? -Lane Mark Crocker wrote: >On Tue, 13 Jul 2004 08:58:07 -0700, Lane Sharman wrote: >=20 > =20 > >>Mark Crocker wrote: >> =20 >> >=20 > =20 > >>>On Mon, 12 Jul 2004 13:02:55 -0400, Brian Goetz wrote: >>> =20 >>> >>>>Mark Crocker wrote: >>>> =20 >>>> > > =20 > >>>>>Tomcat 4.1.x seems to have a problem removing a web application that= actively uses webmacro 1.1final. Auto deployment seems to be broken for= related reasons. >>>>> =20 >>>>> > > =20 > >>>>>Is there a definitive fix or work-around for this problem or could s= omeone supply a concrete example of how to use the ServletContextListener= to shut down webmacro's background threads? >>>>> =20 >>>>> > > =20 > >>>>Is the webmacro.jar in the web app lib/ directory, or the server-wide= =20 >>>>lib/ directory? >>>> =20 >>>> > > =20 > >>>The path is ${CATLINA_HOME}/webapps/${MY_APP}/WEB-INF/lib/webmacro.jar= =2E >>> =20 >>> > > =20 > >>Can you identify which thread is running and not shutting down using a = >>debugger? >> =20 >> > >Great idea! Thanks for the suggestion. > >Unfortunately, no, it doesn't seem to show any orphanned or zombie threa= ds. > >If I install the webapp, I can see it create a new thread. Immediately = stopping and removing it works just fine and removes both the new thread,= the .war file and the corresponding expanded directory. =20 > >Things are a little different if I actually run a servlet that uses webm= acro before stopping and attempting to remove the servlet. Once run, web= macro does start up two threads, org.webmacro.util.TimeLoop$TimeLoopThrea= d and org.webmacro.util.Clock$ClockThread. Simply stopping the webapp do= es kill the three corresponding threads as expected. However, the 'Remov= e' action in the tomcat manager removes everything EXCEPT for the webmacr= o.jar file in the WEB-INF/lib directory. When I try it in Windows 2000, = the OS won't even let me manually delete the project directory or webmacr= o.jar file, complaining of a sharing violation, even though the applicati= on has been stopped. Re-installation also fails even though the tomcat m= anager claims that the second install succeeded. The only recourse at th= is point is to stop tomcat, manually delete the project directory contain= ing the lone jar file and restart tomcat. > >I doubt this is simply a case of tomcat forgetting to close a resource f= or the webmacro.jar file because there are several other jars in that lib= directory that get used and deleted just fine. > >Any other suggestions would be greatly appreciated. > >-- > __ =20 > __ / /\ =20 > / /\/ / /_ ------------------------------------ > / / \/ / /\ Mark Crocker =20 > / / /\ \ \/ / http://www.markcrocker.com/~mcrocker > / / \_\/\ / ------------------------------------=20 >/__/ /\ \ \_\/ >\ \ \_\/ =20 > \ \ \ =20 > \__\/ =20 > > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > =20 > --=20 Lane Sharman Providing Private and SPAM-Free Email http://www.opendoors.com 858-755-2868 |