jboss-cli asking for credential from localhost connection

Solution Verified - Updated -

Issue

  • It shouldn't prompt username/password

    [Userg@HTTP configuration]$ /path/to/jboss/bin/jboss-cli.sh --connect
    Authenticating against security realm: ManagementRealm
    Username:
    org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
            at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:299)
            at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:277)
            at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.jboss.modules.Module.run(Module.java:312)
            at org.jboss.modules.Main.main(Main.java:460)
    Caused by: org.jboss.as.cli.CommandLineException: Unable to authenticate against controller at localhost:9999
            at org.jboss.as.cli.impl.CommandContextImpl.tryConnection(CommandContextImpl.java:990)
            at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:842)
            at org.jboss.as.cli.impl.CommandContextImpl.connectController(CommandContextImpl.java:818)
            at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:297)
            ... 8 more
    Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
            at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:388)
            at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)
            at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
            at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
            at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
    
  • Unable to connect, getting exception:

    [redhat@redhat bin]$ ./jboss-cli.sh 
    You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
    [disconnected /] connect
    Authenticating against security realm: ManagementRealm
    Username: 
    
  • Silent auth not working from local server

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7
  • CLI (command line interface) connection running local to JBoss EAP server

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