Hi,

        I have Tomcat running, hosting Anthill as a continuous build tool.
It's at port 8080, but I can see it is also listening on ports 8005 and
8009.

        When I run my Cactus tests, I'd like to have it launch its own
Tomcat for the tests, so I specify port 3080. Problem is, it is giving an
exception because it wants to install something on port 8005 as well (which
is already used by the 1st Tomcat). Here's the error:

      [cactus] HttpConnector[3080] Starting background thread
      [cactus] StandardServer.await: create[8005]: java.net.BindException:
Address already in use: JVM_Bind
      [cactus] java.net.BindException: Address already in use: JVM_Bind
      [cactus]  at java.net.PlainSocketImpl.socketBind(Native Method)
      [cactus]  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
      [cactus]  at java.net.ServerSocket.bind(ServerSocket.java:309)
      [cactus]  at java.net.ServerSocket.<init>(ServerSocket.java:183)
      [cactus]  at
org.apache.catalina.core.StandardServer.await(StandardServer.java:510)
      [cactus]  at
org.apache.catalina.startup.Catalina.start(Catalina.java:521)
      [cactus]  at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
      [cactus]  at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
      [cactus]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
      [cactus]  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
      [cactus]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
      [cactus]  at java.lang.reflect.Method.invoke(Method.java:324)
      [cactus]  at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
      [cactus] Stopping service Tomcat-Standalone
      [cactus] HttpConnector[3080] Stopping background thread



        So, is there an easy way to specify the full set of port numbers to
be different ? I mean, what's the point of being able to specify only one
port ? I was expecting them to work in terms of offsets of each other, but
clearly I am wrong.


        Thanks,

marcio


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to