tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wadkin <>
Subject RE: Tomcat does not shutdown with script
Date Fri, 18 Jan 2002 15:28:41 GMT

I've tried various things to replicate this error in a controlled way. The
only thing that I can find that causes the error is when TomCat is already
shutdown - i.e. shutting down TomCat when it's *already* shutdown. Starting
and immediately stopping TomCat works fine. If you're certain that TC has
started and you still get the error, then I'm at a loss to explain why!
It's a bit odd though. You'd expect TomCat to exit gracefully rather than
bomb out with a stack trace? Even more oddly, running the script
twice in succession produces no errors!

Hope this is of some use!

Quote for the week:
Happiness is an imaginary condition, formerly often attributed by the living
to the dead, now usually attributed by adults to children, and by children
to adults.
Thomas Szasz, The Second Sin, (1973) "Emotions"

-----Original Message-----
Sent: 18 January 2002 14:47
To: Tomcat Users List
Subject: Re: Tomcat does not shutdown with script

I already had the export statements at the beginning of the 
script.  Tomcat does still not shutdown. How long does it take for your 
tomcat to shutdown?



John Wadkin <>
01/16/2002 07:24 PM
Please respond to Tomcat Users List

        To:     Tomcat Users List <>
        Subject:        Re: Tomcat does not shutdown with script

Yeah - seen this before. I've (we've) just managed to get TomCat working. 
wasn't entirely certain as to where the two environment variables 
and CATALINA_HOME should go, so I stuck them at the top of the
script (not necessarily the best place to put them but it works). TomCat's
user doesn't have a .profile or shell script. However, when I came to
shutdown TomCat I got the same error as you. I then added export 
for the two variables (makes them global) and it works fine.

JAVA_HOME=<path>;export JAVA_HOME

Not entirely certain why this works. The startup and shutdown scripts both
use, so it shouldn't matter than the java variable only exists
for the duration of the script. Could be that TomCat hadn't actually 
started when I tried shutting it down - the delay caused by my adding 
statements to gave it time to load, making it seem that the
modifications had done the trick! It's a theory I intend testing!

Hope my ramblings are of some use!


----- Original Message -----
To: "Tomcat Users List" <>
Sent: Thursday, January 17, 2002 9:55 PM
Subject: Tomcat does not shutdown with script

> I run tomcat 4.0 on a solaris 8 box.  The script does not
> function properly.  It does not shut tomcat cat down.  I get this error.
> /opt/tomcat/jakarta-tomcat-4.0/bin/bootstrap.jar:/usr/java/lib/tools.jar
> Using CATALINA_BASE: /opt/tomcat/jakarta-tomcat-4.0
> Using CATALINA_HOME: /opt/tomcat/jakarta-tomcat-4.0
> Using JAVA_HOME:     /usr/java
> Catalina.stop: Connection refused
> Connection refused
>         at Method)
>         at Code)
>         at Code)
>         at
>         at
>         at<init>(
>         at<init>(
>         at org.apache.catalina.startup.Catalina.stop(Compiled Code)
>         at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>         at org.apache.catalina.startup.Catalina.process(Unknown Source)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at java.lang.reflect.Method.invoke(Compiled Code)
>         at org.apache.catalina.startup.Bootstrap.main(Compiled Code)
> Does anyone have any suggestions?
> Paul Victor

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message