tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Tomcat does not shutdown with script
Date Fri, 18 Jan 2002 14:47:24 GMT
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: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message