[ https://issues.apache.org/jira/browse/JUDDI-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444029#comment-13444029 ]
Atul Mittal commented on JUDDI-308: ----------------------------------- hi I didn't find any patch here..could you please point me to the location where this patch is located??? > tomcat hangs on shutdown + patch > -------------------------------- > > Key: JUDDI-308 > URL: https://issues.apache.org/jira/browse/JUDDI-308 > Project: jUDDI > Issue Type: Bug > Components: juddi-tomcat > Affects Versions: 3.0 > Reporter: Kurt T Stam > Assignee: Kurt T Stam > Fix For: 3.0.1 > > > Bryan Pendleton wrote: > > In my environment, working with the 3.0.0 Tomcat and/or Portal bundles, > > I observe the following behavior: > > > > - I double-click startup.bat to start Tomcat > > - I wait til it's up and running and says "Server startup in NNN ms" > > - I double-click shutdown.bat to stop Tomcat > > > > I see messages in the Tomcat console indicating that Tomcat is > > shutting down, but the shutdown never completes. > > > > When I did "Control-Break" in the Tomcat console, I see that there > > is a Timer thread which is NOT marked as a daemon thread, which is > > I think what is preventing the shutdown. > > > > I applied the following patch in my environment, and now Tomcat shuts > > down cleanly with the shutdown.bat. > > > > What do you think? Is this a reasonable change? > > > > thanks, > > > > bryan > > > > Index: src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java > > =================================================================== > > --- src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java > > (revision 834136) > > +++ src/main/java/org/apache/juddi/subscription/SubscriptionNotifier.java > > (working copy) > > @@ -69,7 +69,7 @@ > > > > public SubscriptionNotifier() throws ConfigurationException { > > super(); > > - timer = new Timer(); > > + timer = new Timer(true); > > timer.scheduleAtFixedRate(this, startBuffer, interval); > > } > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira