You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Koneru, Narendra" <nk...@informatica.com> on 2006/01/26 20:40:03 UTC
How do I stop tomcat when the port is in use
Hi,
When the port that I specify to start tomcat is in use, then I want
tomcat to go down after printing a message. What I observed is that
tomcat prints the message on the screen that there is a bind exception
but tomcat server does not go down. How do make sure that tomcat goes
down after realizing that the port number is in use.
Thanks in advance.
Naren
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How do I stop tomcat when the port is in use
Posted by Mike Sabroff <mi...@cygnusb2b.com>.
kill -9 (unix) task manager (windows)
Shankar Unni wrote:
> Koneru, Narendra wrote:
>
>> When the port that I specify to start tomcat is in use, then I want
>> tomcat to go down after printing a message. What I observed is that
>> tomcat prints the message on the screen that there is a bind exception
>> but tomcat server does not go down.
>
> Do you have some servlet marked for <load-on-startup> whose init()
> starts threads, or anything like that? And the thread is not created
> as a "daemon" thread (setDaemon(true))?
>
> That can cause this behavior.
>
> Or, if any of your <load-on-startup> servlets throws an exception,
> that sometimes screws up the shutdown..
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--
Mike Sabroff
Web Services Developer
mike.sabroff@cygnusb2b.com
920-568-8379
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How do I stop tomcat when the port is in use
Posted by Shankar Unni <sh...@netscape.net>.
Koneru, Narendra wrote:
> When the port that I specify to start tomcat is in use, then I want
> tomcat to go down after printing a message. What I observed is that
> tomcat prints the message on the screen that there is a bind exception
> but tomcat server does not go down.
Do you have some servlet marked for <load-on-startup> whose init()
starts threads, or anything like that? And the thread is not created as
a "daemon" thread (setDaemon(true))?
That can cause this behavior.
Or, if any of your <load-on-startup> servlets throws an exception, that
sometimes screws up the shutdown..
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How do I stop tomcat when the port is in use
Posted by Glen Mazza <gr...@verizon.net>.
Koneru, Narendra wrote:
> Hi,
>
> When the port that I specify to start tomcat is in use, then I want
> tomcat to go down after printing a message. What I observed is that
> tomcat prints the message on the screen that there is a bind exception
> but tomcat server does not go down. How do make sure that tomcat goes
> down after realizing that the port number is in use.
>
I can't duplicate your problem. On Windows for me, running startup.bat
twice activates TC on the first instance, but returns the error and
closes the window for the second instance activation attempt (which
would be using the same port). How are you starting Tomcat? What OS
are you using?
Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org