Uploaded image for project: 'jUDDI (Retired)'
  1. jUDDI (Retired)
  2. JUDDI-308

tomcat hangs on shutdown + patch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0.1
    • juddi-tomcat
    • None

    Description

      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); > }

      >

      Attachments

        Activity

          People

            kstam Kurt Stam
            kurtstam Kurt T Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: