You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Florian Nykrin <fl...@estosee.de> on 2001/08/09 09:38:03 UTC
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:./../lib/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.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.