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 Thu, 17 Jan 2002 00:24:34 GMT
Yeah - seen this before. I've (we've) just managed to get TomCat working. I
wasn't entirely certain as to where the two environment variables JAVA_HOME
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 statements
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 *fully*
started when I tried shutting it down - the delay caused by my adding export
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: <>

View raw message