This error suggests you are trying to shutdown Tomcat on
a port that is not open.  Are you sure you are shutting
down the second Tomcat with the correct server.xml file?
This is the error you would get if you used the first
Tomcat's server.xml file.

Larry

> -----Original Message-----
> From: Florian Nykrin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 3:38 AM
> To: [EMAIL PROTECTED]
> Subject: Problem running two tomcat servers on one machine
> 
> 
> Hello!
> 
> I have a problem running two tomcat-servers on one machine. 
> The servers are 
> started under different user-accounts with different 
> server.xml-files. Each 
> server.xml contains two workers (one ajp12 and one ajp13), 
> all configured for 
> different ports.
> 
> When I now start both tomcats everything works fine. Also the 
> shutdown of the 
> first tomcat works. But when I shutdown the second one I get the 
> error-message:
> 
> Guessing TOMCAT_HOME from tomcat.sh to ./..
> Setting TOMCAT_HOME to ./..
> Using classpath: 
> ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../li
> b/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webse
> rver.jar:/usr/local/jdk1.3.1/bin/../lib/tools.jar
> Stop tomcat
> 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.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
>         at 
> org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
>         at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
>         at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> 
> 
> After that I have to kill the java-processes of the second 
> tomcat manually.
> 
> Does anybody know a solution for this?
> 
> I'm using tomcat version 3.2.3 with jdk version 1.3.1 on SuSE 
> Linux 7.2 .
> 
> Regards, Florian.
> 

Reply via email to