Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

catalina doesnt stop gracefully on linux

Status
Not open for further replies.

developerinlondon

Programmer
Jan 11, 2003
196
GB
i am testing the tomcat service and running into two different problems.
in one machine the tomcat server seems to be running fine (here we are using Tomcat 5.5.0, JDK1.4, gentoo Linux)
and on another the tomcat server starts according to the catalina log but I cant browse to it (using Tomcat 5.5.8, JDK1.5, Redhat Linux).
In both of their catalina.out files I get the exception thrown that the port is already taken (Protocol handler initialization failed: java.net.BindException: Address already in use:8080) whenever I stop and start tomcat, ie tomcat doesnt die properly and the "ps" confirms that. From one of the threads on the net (I found this may be caused by using non-daemon threads, but I am not sure how I may be able to fix this as I havent gotten as far as my application yet.

So what might I be able to do to figure out whats going on?

thanks

n.
 
This is a common problem. I always do a "pkill java" or "kill -9 PID"

--------------------------------------------------
Free Database Connection Pooling Software
 
you mean theres no way to gracefully kill tomcat? that cant be right.
netbeans seems to be able to kill it nicely when i run it on windows.
 
Threading models are completely different on windows as on linux, as process management. Comparing the two is like saying "Well, my yaught can sail through the sea, but my car seems to sink".

--------------------------------------------------
Free Database Connection Pooling Software
 
wouldnt keeping track of the process ID when tomcat starts and then killing it when catalina.sh stop is called make it a bit more seamless?
 
Well you can do it however you like - I'm just saying that sometimes on linux, you need to kill the PID.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top