On 17/12/2018 16:21, Christopher Schultz wrote:

<snip/>

> 16-Dec-2018 11:01:04.189 INFO [main]
> org.apache.catalina.tribes.transport.ReceiverBase.bind Unable to bind
> server socket to:[/<my public ip>:4099] throwing error.
> 16-Dec-2018 11:01:04.190 SEVERE [main]
> org.apache.catalina.tribes.transport.nio.NioReceiver.start Unable to
> start cluster receiver
>  java.net.BindException: Cannot assign requested address
>         at sun.nio.ch.Net.bind0(Native Method)
>         [...]
> 
> Is that / before the IP address correct?

Yes. Looking at the toString() implementation it is:

<hostname/<IP>

and <hostname> is the empty string if the host name is unknown.

> The IP address <my public ip> is an IP address that can be used to
> reach this EC2 instance (where I'm running the testing), but it's not
> an IP address held by the actual VM, so that's probably the problem.
> Is there a way to force the "localhost" IP address for these tests? It
> needs to be 10.something.

That sounds like an explicit setter needs to be added to the unit test
although I haven't dug into exactly what/where.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to