Hi,
I am trying to run multiple instances of Tomcat. The documentation tells me
that i have to have two server.xml files and have to start Tomca with
bin/startup.sh -f /conf/server1.xml and bin/startup.sh -f /conf/server2.xml.
Depending on the tomcat instance to which a servlet in a particular
application has to be directed the context for that application has to be
defined in that particular server.xml file.
Now when i start my tomcat and try and start my second instnace of tomcat i
get an error. However the port on which i am starting the second tomcat
instance is free.
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
at java.net.ServerSocket.<init>(ServerSocket.java:170)
at java.net.ServerSocket.<init>(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Any advice is highly appreciated.
Abhijat Thakur