File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes problem shutting down tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem shutting down tomcat" Watch "problem shutting down tomcat" New topic

problem shutting down tomcat

Daniil Sosonkin
Ranch Hand

Joined: Jan 15, 2004
Posts: 76
I'm having a problem shutting down tomcat 4.1 on Linux Mandrake 9.2
There is no error message or anything like that. I use shutdown script and it seems to be sending command to tomcat since it stops responding and mod_jk can no longer connect to it (in fact it simply hangs). Yet, if I do ps -ef all java processes are still running. The only way to kill the process now is to go by each of those and kill them manually (which is total main in the neck).
Its running latest non-beta JVM 1.4.2_03-b02. I have another box with exactly the same setup and everything works perfectly. The only difference is that older box isn't hyperthreaded.
Anyone can give any suggestions?
N Nanda
Ranch Hand

Joined: Feb 09, 2004
Posts: 62
Check your JAVA_HOME, CATALINA_HOME and CLASSPATH entries in your .bash_profile.

Regards<br />--<br />Niranjan Nanda<br />Consultant<br />Capgemini Consulting India <br />Mumbai<br />Phone: 9324951476
Daniil Sosonkin
Ranch Hand

Joined: Jan 15, 2004
Posts: 76
Here's output:
[root]# ./
Using CATALINA_BASE: /home/tomcat
Using CATALINA_HOME: /home/tomcat
Using CATALINA_TMPDIR: /home/tomcat/temp
Using JAVA_HOME: /home/jdk1.4.2_03
In catalina.out line appears:
Stopping service Tomcat-Standalone
And then I wait long time. Just now I checked it and it did shutdown maybe I never waited that long, but it did put a wierd log message into catalina.out:
Mar 9, 2004 9:29:57 AM org.apache.jk.common.ChannelSocket destroy
INFO: Error shutting down the channel 8009 Connection timed out
I'll have to google on it. But if anyone knows, I'd be most greatful
I agree. Here's the link:
subject: problem shutting down tomcat
It's not a secret anymore!