Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7621309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:09:55+00:00 2026-05-31T04:09:55+00:00

I installed the activeMQ package from ubuntu repositories and it’s properly set up and

  • 0

I installed the activeMQ package from ubuntu repositories and it’s properly set up and running on my ubuntu-server VM. The problem is that I cannot connect to the admin console.
I noticed that on windows bin the jetty.xml is imported on the activemq.xml so I did also in the ubunut-server. But still nothing. Can someone point out what else has to be done ?

EDIT
After suggetions I should have posted the config, so here it is.

<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
      http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data"
        destroyApplicationContextOnStop="true">

  <destinationPolicy>
    <policyMap>
      <policyEntries>
        <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
          <pendingSubscriberPolicy>
            <vmCursor/>
          </pendingSubscriberPolicy>
        </policyEntry>
        <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
        </policyEntry>
      </policyEntries>
    </policyMap>
  </destinationPolicy>

  <destinations>
    <queue physicalName="CMAgentStatus"/>
    <queue physicalName="CMUpdateRequest"/>
    <queue physicalName="CMSnapshotEvent"/>
  </destinations>

  <managementContext>
    <managementContext createConnector="true"/>
  </managementContext>

  <persistenceAdapter>
    <kahaDB directory="${activemq.base}/data/kahadb"/>
  </persistenceAdapter>

  <transportConnectors>
    <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
  </transportConnectors>

</broker>

<!--    <import resource="jetty.xml"/>  -->
</beans>

When I include the jetty.xml the activeMQ doesn’t load. No messages on the activemq.log though.

The jetty.xml looks like:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService">
  <property name="name" value="ActiveMQRealm"/>
  <property name="config" value="${activemq.base}/conf/jetty-realm.properties"/>
</bean>

<bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint">
  <property name="name" value="BASIC"/>
  <property name="roles" value="admin"/>
  <property name="authenticate" value="false"/>
</bean>
<bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
  <property name="constraint" ref="securityConstraint"/>
  <property name="pathSpec" value="/*"/>
</bean>
<bean id="securityHandler" class="org.eclipse.jetty.security.ConstraintSecurityHandler">
  <property name="loginService" ref="securityLoginService"/>
  <property name="authenticator">
    <bean class="org.eclipse.jetty.security.authentication.BasicAuthenticator"/>
  </property>
  <property name="constraintMappings">
    <list>
      <ref bean="securityConstraintMapping"/>
    </list>
  </property>
  <property name="handler">
    <bean id="sec" class="org.eclipse.jetty.server.handler.HandlerCollection">
      <property name="handlers">
        <list>
          <bean class="org.eclipse.jetty.webapp.WebAppContext">
            <property name="contextPath" value="/admin"/>
            <property name="resourceBase" value="${activemq.home}/webapps/admin"/>
            <property name="logUrlOnStart" value="true"/>
          </bean>
          <bean class="org.eclipse.jetty.webapp.WebAppContext">

            <property name="contextPath" value="/camel"/>
            <property name="resourceBase" value="${activemq.home}/webapps/camel"/>
            <property name="logUrlOnStart" value="true"/>
          </bean>
          <bean class="org.eclipse.jetty.webapp.WebAppContext">
            <property name="contextPath" value="/demo"/>
            <property name="resourceBase" value="${activemq.home}/webapps/demo"/>
            <property name="logUrlOnStart" value="true"/>
          </bean>
          <bean class="org.eclipse.jetty.webapp.WebAppContext">
            <property name="contextPath" value="/fileserver"/>
            <property name="resourceBase" value="${activemq.home}/webapps/fileserver"/>
            <property name="logUrlOnStart" value="true"/>
            <property name="parentLoaderPriority" value="true"/>
          </bean>
          <bean class="org.eclipse.jetty.server.handler.ResourceHandler">
            <property name="directoriesListed" value="false"/>
            <property name="welcomeFiles">
              <list>
                <value>index.html</value>
              </list>
            </property>
            <property name="resourceBase" value="${activemq.home}/webapps/"/>
          </bean>
          <bean id="defaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler">
            <property name="serveIcon" value="false"/>
          </bean>
        </list>
      </property>
    </bean>
  </property>
</bean>

<bean id="contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection">
</bean>

<bean id="Server" class="org.eclipse.jetty.server.Server" init-method="start"
      destroy-method="stop">

  <property name="connectors">
    <list>
      <bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
        <property name="port" value="8161"/>
      </bean>
    </list>
  </property>

  <property name="handler">
    <bean id="handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
      <property name="handlers">
        <list>
          <ref bean="contexts"/>
          <ref bean="securityHandler"/>
        </list>
      </property>
    </bean>
  </property>

</bean>

</beans>

I hope this helps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:09:56+00:00Added an answer on May 31, 2026 at 4:09 am

    You should ensure that the ports that are configured are available and allowed by whatever security policy you have in place. If Jetty can’t bind to 8161 then you will have an issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed ActiveMQ as a service on a Windows 2008 64bit server using commons-deamon.
Installed Java SE 1.7.0u10 from Oracle w/ their installer package Downloaded and unpacked Eclipse
I installed Ubuntu 10.04 then upgraded it to 12.04. From there I followed this
Installed SlikSvn on Window 2008 server Created Repository at c:\dia\svn\repos running this windows service
I installed the exception notification plugin from http://github.com/rails/exception_notification/tree/master I can confirm that my ActionMailer
I installed the package libncurses5-dev from the Software Center and then checked for the
Installed Ubuntu 11.10, removed Ruby1.8.7 completely, and then installed Ruby1.9.2-p290 from source, followed by
installed ejabberd using synaptic package manager on Ubuntu 10.04 without any error. sudo dpkg-reconfigure
I installed Python 3.x (besides Python 2.x on Ubuntu) and slowly started to pair
Installed Visual Studio Web Developer 2010 Express from the ISO available from this page:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.