JBoss EAP Domain Controller with Remote Hosts using SSL/TLS and Elytron using the CLI

Solution Verified - Updated -

Issue

  • How do I setup remote+https connections to the domain controller from remote host controllers?
  • Can't connect CLI to remote host controller to correct connection to domain controller
    • Error: Failed to connect to the controller: Timeout waiting for the system to boot.
  • Slave host startup does complete but gets redirect error:

    WARN  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0001: Could not connect to remote domain controller remote+http://xx.xx.xx.xx:9990: java.net.ConnectException: WFLYPRT0053: Could not connect to remote+http://xx.xx.xx.xx:9990. The connection failed
        [Host Controller] at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:128)
        [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnection.lambda$openConnection$0(RemoteDomainConnection.java:223)
        [Host Controller] at org.wildfly.common.context.Contextual.runExceptionAction(Contextual.java:108)
        [Host Controller] at org.wildfly.security.auth.client.AuthenticationContext.run(AuthenticationContext.java:273)
        [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnection.openConnection(RemoteDomainConnection.java:223)
        [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnection$InitialConnectTask.connect(RemoteDomainConnection.java:592)
        [Host Controller] at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
        [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnection.connect(RemoteDomainConnection.java:147)
        [Host Controller] at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:288)
        [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.connectToDomainMaster(DomainModelControllerService.java:965)
        [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:703)
        [Host Controller] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
        [Host Controller] at java.lang.Thread.run(Thread.java:748)
        [Host Controller] Caused by: org.xnio.http.RedirectException: XNIO000816: Redirect encountered establishing connection
        [Host Controller] at org.xnio.http.HttpUpgrade$HttpUpgradeState.handleRedirect(HttpUpgrade.java:513)
        [Host Controller] at org.xnio.http.HttpUpgrade$HttpUpgradeState.access$1300(HttpUpgrade.java:165)
        [Host Controller] at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:468)
        [Host Controller] at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:400)
        [Host Controller] at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
        [Host Controller] at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
        [Host Controller] at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
        [Host Controller] at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
        [Host Controller] at ...asynchronous invocation...(Unknown Source)
    

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 7.2
    • 7.1
  • Domain Mode
  • Remote Host Controllers
  • SSL/TLS

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