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 Fri, 18 Jan 2002 15:28:41 GMT
Paul,

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 startup.sh script
twice in succession produces no errors!

Hope this is of some use!

John
 
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-----
From: VICTOR_PAUL_NONLILLY@LILLY.COM
[mailto:VICTOR_PAUL_NONLILLY@LILLY.COM]
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 catalina.sh 
script.  Tomcat does still not shutdown. How long does it take for your 
tomcat to shutdown?

Thanks,

Paul




John Wadkin <j.wadkin@hud.ac.uk>
01/16/2002 07:24 PM
Please respond to Tomcat Users List

 
        To:     Tomcat Users List <tomcat-user@jakarta.apache.org>
        cc: 
        Subject:        Re: Tomcat does not shutdown with script



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>




--
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