Could not create a connection for cluster node ClusterNode in JBoss EAP 7 / 6

Solution Unverified - Updated -

Issue

  • We are able to invoke a single node, but when we configure our ejb-client to invoke a cluster, it fails to connect to the cluster nodes with this message:
INFO: Could not create a connection for cluster node ClusterNode{clusterName='ejb', nodeName='node1:server', clientMappings=[ClientMapping{sourceNetworkAddress=/0:0:0:0:0:0:0:0, sourceNetworkMaskBits=0, destinationAddress='192.168.1.100', destinationPort=12345}], resolvedDestination=[Destination address=192.168.1.100, destination port=12345]} in cluster ejb
java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
    at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:92)
        Properties prop = new Properties();
        prop.put("remote.clusters", "ejb");
        prop.put("remote.cluster.ejb.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", false);
        prop.put("remote.cluster.ejb.connect.options.org.xnio.Options.SSL_ENABLED", false);
        prop.put("endpoint.name", CLIENT_ENDPOINT);
        prop.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", SSL_ENABLED);
        prop.put("remote.connections", "default");
        prop.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", SASL_POLICY_NOANONYMOUS);
        prop.put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
        prop.put("remote.connection.default.host", REMOTE_HOST);
        prop.put("remote.connection.default.port", REMOTE_PORT);
        prop.put("remote.connection.default.username", USERNAME);
        prop.put("remote.connection.default.password", PASSWORD);
        return new PropertiesBasedEJBClientConfiguration(prop);

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content