You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tim Clotworthy <tc...@integratedsecure.com> on 2011/01/25 16:24:47 UTC

Problem Running Two Tomcat Servers at the Same Time

Hello,

I have tomcat5.5 running on port 8080. I wanted to have a second tomcat instance (that was is tomcat5.0) running at the same time. I made only one change to prevent a conflict. I changed the connect port (in the server.xml file) of the 5.0 instance to 8090. However, if my 5.5 instance is up and running, I get the following error when attempting to start my 5.0 instance:

Jan 25, 2011 10:09:20 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8090
Jan 25, 2011 10:09:20 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 968 ms
StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
      at java.net.ServerSocket.bind(ServerSocket.java:319)
      at java.net.ServerSocket.<init>(ServerSocket.java:185)
      at org.apache.catalina.core.StandardServer.await(StandardServer.java:487)
      at org.apache.catalina.startup.Catalina.await(Catalina.java:610)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:570)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387)

Do I need to do more than change the connect port to avoid a conflict? Any response is appreciated. Thanks!

RE: Problem Running Two Tomcat Servers at the Same Time

Posted by Tim Clotworthy <tc...@integratedsecure.com>.
Thanks, that fixed it!

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Tuesday, January 25, 2011 10:28 AM
To: Tomcat Users List
Subject: RE: Problem Running Two Tomcat Servers at the Same Time

> From: Tim Clotworthy [mailto:tclotworthy@integratedsecure.com] 
> Subject: Problem Running Two Tomcat Servers at the Same Time

> Do I need to do more than change the connect port to avoid 
> a conflict?

Yes, you need to insure that /all/ ports in server.xml are unique.  This includes the ones for each <Connector>, and the one specified in the <Server> element.

 - Chuck
 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


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


RE: Problem Running Two Tomcat Servers at the Same Time

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Tim Clotworthy [mailto:tclotworthy@integratedsecure.com] 
> Subject: Problem Running Two Tomcat Servers at the Same Time

> Do I need to do more than change the connect port to avoid 
> a conflict?

Yes, you need to insure that /all/ ports in server.xml are unique.  This includes the ones for each <Connector>, and the one specified in the <Server> element.

 - Chuck
 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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