tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Exception occurs when shutdown my apache-tomcat 4.1
Date Mon, 23 Jul 2007 15:31:35 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Senthil,

senthil gugan wrote:
>      I am using the apache-tomcat 4.1 in my Linux Suse OS. 
>      An exception is occurs every time I shutdown the tomcat server.
>
> Catalina.stop: java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused

I think you are not actually shutting down your server. This isn't a
shutdown exception. This is an exception being thrown when trying to
shutdown.

That sounds like nonsense, right?

Remember that the server is already running. When you run shutdown.sh,
you're starting up another process that tries to communicate with the
running instance of Tomcat to request a shutdown. The "shutdown" program
is failing. Tomcat is never getting the shutdown message.

Check your server.xml for the server port:

<Server port="[shutdown port] shutdown="SHUTDOWN">

Make sure that "shutdown port" has the value you expect it to have. You
might try netstat:

$ netstat -plan | grep java

This ought to show you which ports are being used by which processes. If
you don't see a java process listening on the shutdown port, then
something is wrong.

You can also get this error if Tomcat isn't actually running. I assume
it's running since you want to shut it down.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpMnX9CaO5/Lv0PARAkm6AJwMq1gSZVNeXQjxlM55avuaI8Q93wCbBWdJ
rEcGKaFwHQJb2kPuPvDKidE=
=NIEn
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message