Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1014

Cannot login to hawtio on A-MQ standalone "Login failed due No LoginModules configured for karaf"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • JBoss A-MQ 6.2.1
    • JBoss A-MQ 6.2
    • hawtio (console)
    • None
    • apache-activemq-5.11.0.redhat-620118

    • Hide
      1. unzip A-MQ distribution
      2. unzip apache-activemq*-bin.zip from the extras/ directory
      3. edit the conf/users.properties, conf/groups.properties and conf/jetty-realm.properties
      4. chmod +x bin/activemq
      5. bin/activemq console
      6. open http://0.0.0.0:8161/
      7. attempt to use the new console (hawtio) and login as admin:admin
      8. notice the failure to login and the WARN in the logs
      Show
      unzip A-MQ distribution unzip apache-activemq*-bin.zip from the extras/ directory edit the conf/users.properties, conf/groups.properties and conf/jetty-realm.properties chmod +x bin/activemq bin/activemq console open http://0.0.0.0:8161/ attempt to use the new console (hawtio) and login as admin:admin notice the failure to login and the WARN in the logs

      Cannot login to hawtio in A-MQ standalone (the Karaf-less A-MQ distribution)

      $ ./activemq console
      INFO: Using default configuration
            Configurations are loaded in the following order: /etc/default/activemq /home/maschmid/.activemqrc /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/bin/env
      
      INFO: Using java '/usr/bin/java'
      INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
      Java Runtime: Oracle Corporation 1.8.0_45 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.45-35.b13.fc21.x86_64/jre
        Heap sizes: current=119808k  free=117302k  max=1749504k
          JVM args: -Djava.awt.headless=true -Djava.io.tmpdir=/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/tmp -Dactivemq.classpath=/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/conf: -Dactivemq.home=/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118 -Dactivemq.base=/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118 -Dactivemq.conf=/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/conf -Dactivemq.data=/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/data
      Extensions classpath:
        [/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/lib,/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/lib/camel,/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/lib/optional,/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/lib/web,/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/lib/extra]
      ACTIVEMQ_HOME: /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118
      ACTIVEMQ_BASE: /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118
      ACTIVEMQ_CONF: /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/conf
      ACTIVEMQ_DATA: /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/data
      Loading message broker from: xbean:activemq.xml
       INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@3d24753a: startup date [Mon May 18 14:32:14 CEST 2015]; root of context hierarchy
       INFO | PListStore:[/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/data/localhost/tmp_storage] started
       INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/data/kahadb]
       INFO | KahaDB is version 5
       INFO | Recovering from the journal @1:504
       INFO | Recovery replayed 43 operations from the journal in 0.033 seconds.
       INFO | Apache ActiveMQ 5.11.0.redhat-620118 (localhost, ID:saul-35486-1431952335850-0:1) is starting
       INFO | Listening for connections at: tcp://saul:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector openwire started
       INFO | Listening for connections at: amqp://saul:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector amqp started
       INFO | Listening for connections at: stomp://saul:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector stomp started
       INFO | Listening for connections at: mqtt://saul:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector mqtt started
      {}
       INFO | Listening for connections at ws://saul:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector ws started
       INFO | Apache ActiveMQ 5.11.0.redhat-620118 (localhost, ID:saul-35486-1431952335850-0:1) started
       INFO | For help or more information please see: http://activemq.apache.org
       WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/data/kahadb only has 98843 mb of usable space - resetting to maximum available disk space: 98843 mb
       INFO | Configuration will be discovered via system properties
       INFO | Welcome to hawtio 1.4.redhat-118 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
       INFO | Using file upload directory: /home/maschmid/tmp/amq/apache-activemq-5.11.0.redhat-620118/tmp/uploads
       INFO | Starting hawtio authentication filter, JAAS realm: "karaf" authorized role(s): "admin,viewer" role principal classes: ""
       INFO | jolokia-agent: Using access restrictor classpath:/jolokia-access.xml
       INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
       INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/
       INFO | Initializing Spring FrameworkServlet 'dispatcher'
       WARN | Login failed due No LoginModules configured for karaf
      

              dejanbosanac Dejan Bosanac
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: