Hi,
I've had this a couple of times. Took me quite a while to figure out
what was wrong.
With me it turned out that Tomcat hadn;t fully started yet when I was
issuing the shutdown command.
The reason was that when starting up Tomcat needs to parse several
XML-files. These may have references to DTDs in them. By default the
web.xml file needs to retrieve the DTD from the Sun website. When this
website isn't responding Tomcat (or rather the XML parser) is waiting
for a timeout. When that finally happens you'll see an exception in
your log files. After that you can shutdown. I've seen timeots as long
as 5 minutes (!).
You can of course force tomcat to stop by usinig the kill command if
you're on a Unix box.
But this doesn.t solve the problem that Tomcat doesn't startup
correctly.
Hope this helps,
Freek
On dinsdag, aug 12, 2003, at 17:04 Europe/Amsterdam, Chris Daly wrote:
hi
i have two instances of tomcat runnign as a stand olone but on
different ports - i can neither stop nor start either tomcat as all
that i'm getting is
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.init(Socket.java:273)
at java.net.Socket.init(Socket.java:100)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
how do i stop the service ? i'm trying to use bin/shutdown.sh but
its not working.
i have two instances of tomcat runnign as a stand olone but on
different ports
cheers
chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Freek Segers
Senior Systeemontwikkelaar
NEROC 'MEDIAWARE
De Run 1131
5503 LB Veldhoven
T +31 (0)40 258 66 66
F +31 (0)40 258 66 77
E-mail: [EMAIL PROTECTED]
Internet: http://www.nerocmediaware.nl