JavaQuest
JavaQuest

Reputation: 713

Unable to access ActiveMQ admin page /admin/. Reason: Unauthorized

I am trying to follow tutorial for ActiveMQ. After starting ActiveMQ from command prompt using activemq-admin.bat start I am trying to access http://localhost:8161/admin/ to create new queues, but it throws me an error. (I can access http://localhost:8161/)

HTTP ERROR: 401
Problem accessing /admin/index.jsp. Reason:
Unauthorized

Can anyone please suggest me any solution for it?

Upvotes: 3

Views: 10049

Answers (4)

MrTombaius
MrTombaius

Reputation: 1

It was also not working for me on Microsoft Edge and i can't user another browser at work.

But you can change the settings in the underlying jetty.

Goto jetty.xml in your Installation folder /conf:

    <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
        <property name="name" value="BASIC" />
        <property name="roles" value="users,admins" />
        <!-- set authenticate=false to disable login -->
        <property name="authenticate" value="**false**" />
    </bean>
    <bean id="adminSecurityConstraint" class="org.eclipse.jetty.util.security.Constraint">
        <property name="name" value="BASIC" />
        <property name="roles" value="admins" />
         <!-- set authenticate=false to disable login -->
        <property name="authenticate" value="**false**" />
    </bean>

and set authenticate to false. No login required.

Upvotes: 0

Mayur Saswade
Mayur Saswade

Reputation: 31

I am using apache activemq version 5.16.3. And on my machine It did work on chrome/internet explorer but not on edge.

Upvotes: 0

JavaQuest
JavaQuest

Reputation: 713

It Turned out to be Browser issue. It worked on Internet Explorer and not on Chrome

Upvotes: 9

Pradeep Bogati
Pradeep Bogati

Reputation: 213

Seems like you are trying to access the page without logging in. To log in: Go to localhost:portNo/admin portNo= 8161 if not modified You will be prompted with login popup username: admin password: admin The above are the default values. If it's wrong, have a look at conf/jetty-realm.properties file.

Hope it helped.

Upvotes: 0

Related Questions