On 10/06/2023 18:11, Manak Bisht wrote:
I am trying to run the carts example (*/examples/jsp/sessions/carts.jsp*)
with two nodes, on ports 8090 and 8190. The nodes are working fine
individually. However, I am trying to create a cluster with static members
(without multicast), but I keep encountering the following error -

<snip/>

                     <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"/>

You are listening on the default port of 4000 ...

                             <Member
className="org.apache.catalina.tribes.membership.StaticMember"
                                 port="8090"
                                 securePort="-1"
                                 host="localhost"
                                 domain="delta-static"

uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0}"
                                 />

... but trying to send to port 8009.

The send/receive ports for the cluster need to match.

Since you are running on a single machine I would explicitly configure the ports as:
node1 - 4001
node2 - 4002

and so on.

Keep in mind you will also need unique HTTP, HTTPS, AJP and shutdown ports for each node (as required depending on what is enabled).

Mark

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

Reply via email to