tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wadkin <j.wad...@hud.ac.uk>
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 catalina.sh
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
CATALINA_HOME=<path>;export CATALINA_HOME

Not entirely certain why this works. The startup and shutdown scripts both
use catalina.sh, 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 catalina.sh 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!

John

----- Original Message -----
From: <VICTOR_PAUL_NONLILLY@LILLY.COM>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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 shutdown.sh script does not
> function properly.  It does not shut tomcat cat down.  I get this error.
>
> Using CLASSPATH:
> /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: java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.socketConnect(Compiled Code)
>         at java.net.PlainSocketImpl.doConnect(Compiled Code)
>         at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
>         at java.net.Socket.<init>(Socket.java:269)
>         at java.net.Socket.<init>(Socket.java:98)
>         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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message