You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <ju...@ws.apache.org> on 2009/11/13 03:10:39 UTC

[jira] Closed: (JUDDI-308) tomcat hangs on shutdown + patch

     [ https://issues.apache.org/jira/browse/JUDDI-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt T Stam closed JUDDI-308.
-----------------------------

    Resolution: Fixed

Makes total sense to me :). Applied and tested the patch.

> 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.
-
You can reply to this email to add a comment to the issue online.