----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


> I had this problem once. The reason for it was that I had a "watchdog"
> servlet in my system that started a Timer thread that would periodically
> fire a time out event and then go around the system doing things like
> checking that all my DB connections were still good, and then sleep until
> the next time out. Apparently this sleeping thread interfered with the
> automatic shutdown process of JServ because JServ could never get a
> response from the thread within the automatic shutdown timeout
> period.  Shutdown worked when I wasn't using that servlet.


in this case, you have to declare your thread as daemon
(with thread.setDaemon(true) )

----- Original Message -----
From: Dennis Doubleday <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Thursday, October 19, 2000 3:36 PM
Subject: Re: JServ will not restart


> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> At 09:09 AM 10/19/00, you wrote:
>
> >Unfortunately, Apache also fails to start JServ. Once I stop Apache for
> >any reason and restart it it will not restart JServ. The port will still
> >be in use and I think it shouldn't be. (I wait a couple of minutes before
> >restarting Apache).
>
> I had this problem once. The reason for it was that I had a "watchdog"
> servlet in my system that started a Timer thread that would periodically
> fire a time out event and then go around the system doing things like
> checking that all my DB connections were still good, and then sleep until
> the next time out. Apparently this sleeping thread interfered with the
> automatic shutdown process of JServ because JServ could never get a
> response from the thread within the automatic shutdown timeout
> period.  Shutdown worked when I wasn't using that servlet.
>
> Perhaps you have a similar situation?
>
> -------------------------------------------------------------
> Dennis Doubleday          email: [EMAIL PROTECTED]
> yourfit.com, Inc.           web: http://www.yourfit.com/
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to