Dec 21st, 2011, 10:29 AM
Port already in use: 6969
I am trying to run two tc Server instances on a single machine.
I use the tcruntime-instance.sh script (provided by vFabric) to create the instances. During the creation of the second instance I pass the parameter -p bio.http.port=8081 to change the http listening port which works fine:
Port: 8081 Type: Blocking IO Secure: false
But I cannot start the second server, catalina.out says:
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 6969; nested exception is:
java.net.BindException: Address already in use
How can I change the jmx port during instance creation? I found out that the tcruntime-ctl.sh script in the instance directory uses the catalina.sh script in the main server directory where the jmx port is some kind of hardwired?!
Any help is greatly appreciated.