title: ActiveMQ Ubuntu server admin console
body: <p>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 ?</p>
  
  <p>EDIT
  After suggetions I should have posted the config, so here it is.
  </p>
  
  <pre><code>&lt;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"&gt;
  
  &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/&gt;
  
  &lt;broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data"
          destroyApplicationContextOnStop="true"&gt;
  
    &lt;destinationPolicy&gt;
      &lt;policyMap&gt;
        &lt;policyEntries&gt;
          &lt;policyEntry topic="&gt;" producerFlowControl="true" memoryLimit="1mb"&gt;
            &lt;pendingSubscriberPolicy&gt;
              &lt;vmCursor/&gt;
            &lt;/pendingSubscriberPolicy&gt;
          &lt;/policyEntry&gt;
          &lt;policyEntry queue="&gt;" producerFlowControl="true" memoryLimit="1mb"&gt;
          &lt;/policyEntry&gt;
        &lt;/policyEntries&gt;
      &lt;/policyMap&gt;
    &lt;/destinationPolicy&gt;
  
    &lt;destinations&gt;
      &lt;queue physicalName="CMAgentStatus"/&gt;
      &lt;queue physicalName="CMUpdateRequest"/&gt;
      &lt;queue physicalName="CMSnapshotEvent"/&gt;
    &lt;/destinations&gt;
  
    &lt;managementContext&gt;
      &lt;managementContext createConnector="true"/&gt;
    &lt;/managementContext&gt;
  
    &lt;persistenceAdapter&gt;
      &lt;kahaDB directory="${activemq.base}/data/kahadb"/&gt;
    &lt;/persistenceAdapter&gt;
  
    &lt;transportConnectors&gt;
      &lt;transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/&gt;
    &lt;/transportConnectors&gt;
  
  &lt;/broker&gt;
  
  &lt;!--    &lt;import resource="jetty.xml"/&gt;  --&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>When I include the jetty.xml the activeMQ doesn't load. No messages on the activemq.log though.</p>
  
  <p>The jetty.xml looks like:</p>
  
  <pre><code>&lt;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"&gt;
  
  &lt;bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService"&gt;
    &lt;property name="name" value="ActiveMQRealm"/&gt;
    &lt;property name="config" value="${activemq.base}/conf/jetty-realm.properties"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="securityConstraint" class="org.eclipse.jetty.http.security.Constraint"&gt;
    &lt;property name="name" value="BASIC"/&gt;
    &lt;property name="roles" value="admin"/&gt;
    &lt;property name="authenticate" value="false"/&gt;
  &lt;/bean&gt;
  &lt;bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"&gt;
    &lt;property name="constraint" ref="securityConstraint"/&gt;
    &lt;property name="pathSpec" value="/*"/&gt;
  &lt;/bean&gt;
  &lt;bean id="securityHandler" class="org.eclipse.jetty.security.ConstraintSecurityHandler"&gt;
    &lt;property name="loginService" ref="securityLoginService"/&gt;
    &lt;property name="authenticator"&gt;
      &lt;bean class="org.eclipse.jetty.security.authentication.BasicAuthenticator"/&gt;
    &lt;/property&gt;
    &lt;property name="constraintMappings"&gt;
      &lt;list&gt;
        &lt;ref bean="securityConstraintMapping"/&gt;
      &lt;/list&gt;
    &lt;/property&gt;
    &lt;property name="handler"&gt;
      &lt;bean id="sec" class="org.eclipse.jetty.server.handler.HandlerCollection"&gt;
        &lt;property name="handlers"&gt;
          &lt;list&gt;
            &lt;bean class="org.eclipse.jetty.webapp.WebAppContext"&gt;
              &lt;property name="contextPath" value="/admin"/&gt;
              &lt;property name="resourceBase" value="${activemq.home}/webapps/admin"/&gt;
              &lt;property name="logUrlOnStart" value="true"/&gt;
            &lt;/bean&gt;
            &lt;bean class="org.eclipse.jetty.webapp.WebAppContext"&gt;
  
              &lt;property name="contextPath" value="/camel"/&gt;
              &lt;property name="resourceBase" value="${activemq.home}/webapps/camel"/&gt;
              &lt;property name="logUrlOnStart" value="true"/&gt;
            &lt;/bean&gt;
            &lt;bean class="org.eclipse.jetty.webapp.WebAppContext"&gt;
              &lt;property name="contextPath" value="/demo"/&gt;
              &lt;property name="resourceBase" value="${activemq.home}/webapps/demo"/&gt;
              &lt;property name="logUrlOnStart" value="true"/&gt;
            &lt;/bean&gt;
            &lt;bean class="org.eclipse.jetty.webapp.WebAppContext"&gt;
              &lt;property name="contextPath" value="/fileserver"/&gt;
              &lt;property name="resourceBase" value="${activemq.home}/webapps/fileserver"/&gt;
              &lt;property name="logUrlOnStart" value="true"/&gt;
              &lt;property name="parentLoaderPriority" value="true"/&gt;
            &lt;/bean&gt;
            &lt;bean class="org.eclipse.jetty.server.handler.ResourceHandler"&gt;
              &lt;property name="directoriesListed" value="false"/&gt;
              &lt;property name="welcomeFiles"&gt;
                &lt;list&gt;
                  &lt;value&gt;index.html&lt;/value&gt;
                &lt;/list&gt;
              &lt;/property&gt;
              &lt;property name="resourceBase" value="${activemq.home}/webapps/"/&gt;
            &lt;/bean&gt;
            &lt;bean id="defaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"&gt;
              &lt;property name="serveIcon" value="false"/&gt;
            &lt;/bean&gt;
          &lt;/list&gt;
        &lt;/property&gt;
      &lt;/bean&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"&gt;
  &lt;/bean&gt;
  
  &lt;bean id="Server" class="org.eclipse.jetty.server.Server" init-method="start"
        destroy-method="stop"&gt;
  
    &lt;property name="connectors"&gt;
      &lt;list&gt;
        &lt;bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector"&gt;
          &lt;property name="port" value="8161"/&gt;
        &lt;/bean&gt;
      &lt;/list&gt;
    &lt;/property&gt;
  
    &lt;property name="handler"&gt;
      &lt;bean id="handlers" class="org.eclipse.jetty.server.handler.HandlerCollection"&gt;
        &lt;property name="handlers"&gt;
          &lt;list&gt;
            &lt;ref bean="contexts"/&gt;
            &lt;ref bean="securityHandler"/&gt;
          &lt;/list&gt;
        &lt;/property&gt;
      &lt;/bean&gt;
    &lt;/property&gt;
  
  &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>I hope this helps.</p>