Unable to deploy active mq web console on JBoss Fuse

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Fuse
    • 6.0

Issue

  • When the active mq web console profile (mq-web-console) is deployed onto a mq container or any other container it fails with the 404 error code when accessed from the browser
http://<host>8181/activemqweb
  • The log has following message on start-up which seems to be the root cause of active mq web console no startup.

  • The "username/password" are set-up as per the instructions on [1]

2013-06-28 17:30:26,605 | WARN  | Executor: 1      | AbstractLifeCycle                | util.component.AbstractLifeCycle  204 | 78 - org.eclipse.jetty.util - 7.6.7.v20120910 | FAILED org.eclipse.jetty.security.ConstraintSecurityHandler@4de8ce62: java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@48e18517 in org.eclipse.jetty.security.ConstraintSecurityHandler@4de8ce62
java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@48e18517 in org.eclipse.jetty.security.ConstraintSecurityHandler@4de8ce62
    at org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:45)[90:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:376)[90:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:233)[90:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[78:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:115)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:120)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[78:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:115)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:729)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:683)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:100)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[78:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:165)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]
    at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:728)[79:org.ops4j.pax.web.pax-web-runtime:1.1.11]
    at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:281)[79:org.ops4j.pax.web.pax-web-runtime:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:348)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:629)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebAppPublisher.java:170)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:155)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:119)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.tracker.ReplaceableService.setService(ReplaceableService.java:114)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.tracker.ReplaceableService.access$100(ReplaceableService.java:28)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.tracker.ReplaceableService$CollectionListener.serviceAdded(ReplaceableService.java:183)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.tracker.ServiceCollection$Tracker.addingService(ServiceCollection.java:181)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)[karaf.jar:2.3.0.redhat-60024]
    at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)[karaf.jar:2.3.0.redhat-60024]
    at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[karaf.jar:2.3.0.redhat-60024]
    at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[karaf.jar:2.3.0.redhat-60024]
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)[karaf.jar:2.3.0.redhat-60024]
    at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[karaf.jar:2.3.0.redhat-60024]
    at org.ops4j.pax.swissbox.tracker.ServiceCollection.onStart(ServiceCollection.java:139)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.tracker.ReplaceableService.onStart(ReplaceableService.java:146)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:81)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.deploy(WebXmlObserver.java:204)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.addingEntries(WebXmlObserver.java:162)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at org.ops4j.pax.swissbox.extender.BundleWatcher$3.run(BundleWatcher.java:224)[126:org.ops4j.pax.web.pax-web-extender-war:1.1.11]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_21]
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_21]
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_21]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_21]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_21]
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_21]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_21]
    at java.lang.Thread.run(Thread.java:619)[:1.6.0_21]
2013-06-28 17:30:26,611 | WARN  | Executor: 1      | AbstractLifeCycle                | util.component.AbstractLifeCycle  204 | 78 - org.eclipse.jetty.util - 7.6.7.v20120910 | FAILED org.eclipse.jetty.server.session.SessionHandler@6f45abe3: java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@48e18517 in org.eclipse.jetty.security.ConstraintSecurityHandler@4de8ce62
java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@48e18517 in org.eclipse.jetty.security.ConstraintSecurityHandler@4de8ce62
    at org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:45)[90:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:376)[90:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:233)[90:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[78:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:115)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:120)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[78:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:115)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:729)[82:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:238)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:683)[82:org.eclipse.jetty.server:7.6.7.v20120910]

[1] https://access.redhat.com/site/documentation/en-US/JBoss_Fuse/6.0/html/Configuring_and_Running_JBoss_Fuse/files/BasicSec.html

Resolution

  • This issue looks related to https://issues.jboss.org/browse/ENTMQ-289 for profile in fabric environment. Try the following steps:

  • Copy the attached "jetty.xml" and "org.ops4j.pax.web.cfg" from attachment "config.zip" to the "etc/" folder of the container that will run mq-web-console profile and restart the container.

  • Make sure that ActiveMQ web Console is installed already.

    • Deleted data directory in order to start fresh

    • Check that the broker was alive:

JBossFuse:karaf@root> list |grep MQ
[ 128] [Active     ] [Created     ] [       ] [   60] JBoss A-MQ Fabric (6.0.0.redhat-024)
  • Installed mq-web-console:
JBossFuse:karaf@root> features:install mq-web-console
Refreshing bundles org.ops4j.pax.web.pax-web-runtime (100), org.ops4j.pax.web.pax-web-extender-war (229)
  • Opened a browser to access the console:
http://localhost:8181/activemqweb
  • Enter my password as specified in the "etc/user.properties", admin, admin.

Attachments

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.