2 Replies Latest reply on Feb 22, 2012 3:42 AM by jonfoxx

    JBoss AS 7.1Final + embedded ActiveMQ + ActiveMQ web-console exception

    jonfoxx

      Hello,

       

      I have successfully integrated ActiveMQ (v5.5.1) with JBoss AS 7.1Final. As a next step, I am trying to integrate the ActiveMQ web-console with JBoss to go with the embedded ActiveMQ instance that I deployed as a standard resource adapter in JBoss.

       

      However, on doing so I am getting one exception. Furthermore, I am unable to see the web console in the web-browser. The JBoss trace follows.

       

      D:\setups\jboss-as-7.1.0.Final\jboss-as-7.1.0.Final\bin>standalone.bat

      Calling "D:\setups\jboss-as-7.1.0.Final\jboss-as-7.1.0.Final\bin\standalone.conf.bat"

      ===============================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: D:\setups\jboss-as-7.1.0.Final\jboss-as-7.1.0.Final

       

        JAVA: C:\Program Files\Java\jdk1.6.0_21\bin\java

       

        JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml

       

      ===============================================================================

       

      19:11:44,591 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      19:11:44,749 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      19:11:44,791 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting

      19:11:45,675 INFO  [org.xnio] XNIO Version 3.0.3.GA

      19:11:45,676 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      19:11:45,684 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      19:11:45,691 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.2.GA

      19:11:45,707 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      19:11:45,747 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      19:11:45,758 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

      19:11:45,779 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      19:11:45,789 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 47) JBAS015537: Activating WebServices Extension

      19:11:45,807 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 43) JBAS013101: Activating Security Subsystem

      19:11:45,812 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      19:11:45,935 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      19:11:45,961 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.6.final

      19:11:46,076 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      19:11:46,342 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

      19:11:46,344 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)

      19:11:46,374 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.1.GA

      19:11:46,437 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

      19:11:46,510 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:4447

      19:11:46,523 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory D:\setups\jboss-as-7.1.0.Final\jboss-as-7.1.0.Final\standalone\deployments

      19:11:46,523 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999

      19:11:46,735 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      19:11:46,753 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "activemq-ra.rar"

      19:11:46,754 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "activemq-web-console-5.5.1.war"

      19:11:50,684 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-3) IJ020001: Required license terms for file:/D:/setups/jboss-as-7.1.0.Final/jboss-as-7.1.0.Final/standalone/tmp/vfs/temp6758e59f87406d21/activemq-ra.rar-4b134898354aeece/contents/

      19:11:50,721 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-3) IJ020001: Required license terms for file:/D:/setups/jboss-as-7.1.0.Final/jboss-as-7.1.0.Final/standalone/tmp/vfs/temp6758e59f87406d21/activemq-ra.rar-4b134898354aeece/contents/

      19:11:50,773 INFO  [org.apache.activemq.xbean.XBeanBrokerFactory$1] (Starting ActiveMQ Broker) Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@1175f40: startup date [Tue Feb 21 19:11:50 IST 2012]; root of context hierarchy

      19:11:50,808 INFO  [org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader] (Starting ActiveMQ Broker) Loading XML bean definitions from class path resource [broker-config.xml]

      19:11:51,269 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (Starting ActiveMQ Broker) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15206a4: defining beans [org.apache.activemq.xbean.XBeanBrokerService#0]; root of factory hierarchy

      19:11:51,358 INFO  [org.apache.activemq.store.kahadb.plist.PListStore] (Starting ActiveMQ Broker) PListStore:activemq-data\localhost\tmp_storage started

      19:11:51,383 INFO  [org.apache.activemq.broker.BrokerService] (Starting ActiveMQ Broker) Using Persistence Adapter: KahaDBPersistenceAdapter[D:\setups\jboss-as-7.1.0.Final\jboss-as-7.1.0.Final\bin\activemq-data\kahadb]

      19:11:52,177 INFO  [org.apache.activemq.store.kahadb.MessageDatabase] (Starting ActiveMQ Broker) KahaDB is version 3

      19:11:52,206 INFO  [org.apache.activemq.store.kahadb.MessageDatabase] (Starting ActiveMQ Broker) Recovering from the journal ...

      19:11:52,211 INFO  [org.apache.activemq.store.kahadb.MessageDatabase] (Starting ActiveMQ Broker) Recovery replayed 1 operations from the journal in 0.018 seconds.

      19:11:52,241 INFO  [org.apache.activemq.broker.BrokerService] (Starting ActiveMQ Broker) ActiveMQ 5.5.1 JMS Message Broker (localhost) is starting

      19:11:52,246 INFO  [org.apache.activemq.broker.BrokerService] (Starting ActiveMQ Broker) For help or more information please see: http://activemq.apache.org/

      19:11:52,668 INFO  [org.apache.activemq.transport.TransportServerThreadSupport] (Starting ActiveMQ Broker) Listening for connections at: tcp://127.0.0.1:61616

      19:11:52,673 INFO  [org.apache.activemq.broker.TransportConnector] (Starting ActiveMQ Broker) Connector tcp://localhost:61616 Started

      19:11:52,679 INFO  [org.apache.activemq.broker.BrokerService] (Starting ActiveMQ Broker) ActiveMQ JMS Message Broker (localhost, ID:PS7028-59161-1329831712267-0:1) started

      19:11:52,689 INFO  [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-3) IJ020002: Deployed: file:/D:/setups/jboss-as-7.1.0.Final/jboss-as-7.1.0.Final/standalone/tmp/vfs/temp6758e59f87406d21/activemq-ra.rar-4b134898354aeece/contents/

      19:11:54,612 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) JBossOSGi Framework Core - 1.1.5

      19:11:54,615 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 10248ms - Started 177 of 253 services (1 services failed or missing dependencies, 74 services are passive or on-demand)

      19:11:54,671 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: system.bundle:0.0.0

      19:11:55,365 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: javax.transaction.api:0.0.0

      19:11:55,518 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: jboss-as-osgi-configadmin:7.1.0.Final

      19:11:55,746 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: org.apache.felix.log:1.0.0

      19:11:55,860 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: jboss-osgi-logging:1.0.0

      19:11:55,995 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: org.apache.felix.configadmin:1.2.8

      19:11:56,053 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: jbosgi-http-api:1.0.5

      19:11:56,150 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: osgi.enterprise:4.2.0.201003190513

      19:11:56,258 INFO  [org.jboss.osgi.framework.internal.StartLevelPlugin] (MSC service thread 1-2) Starting bundles for start level: 1

      19:11:56,262 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: jbosgi-http-api:1.0.5

      19:11:56,267 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: osgi.enterprise:4.2.0.201003190513

      19:11:56,275 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: jboss-as-osgi-configadmin:7.1.0.Final

      19:11:56,284 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: jboss-osgi-logging:1.0.0

      19:11:56,299 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: org.apache.felix.log:1.0.0

      19:11:56,308 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: javax.transaction.api:0.0.0

      19:11:56,329 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-2) Bundle started: org.apache.felix.configadmin:1.2.8

      19:11:56,334 INFO  [org.jboss.osgi.framework.internal.FrameworkActive] (MSC service thread 1-2) OSGi Framework started

      19:11:56,353 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.activemq.activemq-web-console:5.5.1

      19:11:56,365 ERROR [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] (MSC service thread 1-3) Framework ERROR: org.osgi.framework.BundleException: Cannot resolve bundle resModule: [org.apache.activemq.activemq-web-console:5.5.1]

              at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) [jboss-as-osgi-service-7.1.0.Final.jar:7.1.0.Final]

              at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) [jboss-as-osgi-service-7.1.0.Final.jar:7.1.0.Final]

              at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

      Caused by: org.jboss.osgi.resolver.XResolverException: Unable to resolve Module[org.apache.activemq.activemq-web-console:5.5.1]: missing requirement [Module[org.apache.activemq.activemq-web-console:5.5.1]] package; (&(package=javax.servlet.jsp)(version>=2.1.0)(!(version>=3.0.0)))

              at org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117) [jbosgi-resolver-felix-1.0.11.jar:1.0.11]

              at org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:149) [jbosgi-resolver-spi-1.0.11.jar:1.0.11]

              at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              ... 11 more

       

      19:11:56,463 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "activemq-web-console-5.5.1.war"

      19:11:56,494 ERROR [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011900: Cannot start bundle: org.apache.activemq.activemq-web-console:5.5.1: org.osgi.framework.BundleException: Cannot resolve bundle: org.apache.activemq.activemq-web-console:5.5.1

              at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:212) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.1.5.jar:1.1.5]

              at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) [jboss-as-osgi-service-7.1.0.Final.jar:7.1.0.Final]

              at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) [jboss-as-osgi-service-7.1.0.Final.jar:7.1.0.Final]

              at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

       

      19:11:56,496 ERROR [org.apache.activemq.activemq-web-console] (Thread-77) FrameworkEvent ERROR: org.apache.felix.log.LogException: org.osgi.framework.BundleException: Cannot resolve bundle resModule: [org.apache.activemq.activemq-web-console:5.5.1]

              at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157)

              at org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551)

              at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211)

              at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494)

              at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144)

              at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119)

              at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416)

              at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49)

              at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

      Caused by: org.apache.felix.log.LogException: org.jboss.osgi.resolver.XResolverException: Unable to resolve Module[org.apache.activemq.activemq-web-console:5.5.1]: missing requirement [Module[org.apache.activemq.activemq-web-console:5.5.1]] package; (&(package=javax.servlet.jsp)(version>=2.1.0)(!(version>=3.0.0)))

              at org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117)

              at org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:149)

              at org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155)

              ... 11 more

       

      19:11:56,495 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "activemq-ra.rar"

       

      I haven't found much information on performing this integration and would appreciate any quick pointers. Thanks.

       

      Other Details:

       

      I have tried different versions of the web console WAR without success. I have also tried it without deploying the ActiveMQ resource adapter but the exception stays. If it helps, I have also tried using the activemq.xml from the standalone ActiveMQ conf directory in the web console WAR. I would also be happy if there were some other management tools that I can use to delete queues etc (It appears JBoss does not expose any in AS 7).

       

      I obtained the activemq-web-console-5.5.1 from http://repo1.maven.org/maven2/org/apache/activemq/activemq-web-console/5.5.1/.

        • 1. Re: JBoss AS 7.1Final + embedded ActiveMQ + ActiveMQ web-console exception
          jbertram

          It looks like the ActiveMQ Web Console is built as an OSGi bundle, and it's dependencies are not being met.  Unfortunately I don't know much about OSGi so I can't recommend a potential resolution.

          I would be happy if there were some other management tools that I can use to delete queues etc (It appears JBoss does not expose any in AS 7).

          There are ways to manage the JMS implementation shipped with AS7.x (i.e. HornetQ), but there's no generic mechanism to manage any JMS implementation you decide to integrate as this would require knowledge of each potential provider and an integration layer to suit their implementation.

           

          Is there a specific reason you are using ActiveMQ instead of HornetQ?

          • 2. Re: JBoss AS 7.1Final + embedded ActiveMQ + ActiveMQ web-console exception
            jonfoxx

            Thanks for the informative reply.

            Is there a specific reason you are using ActiveMQ instead of HornetQ?

            I think HornetQ provides most features that I am looking at currently. I also discovered that it is not straightforward to use the ActiveMQ resource adapter with JBoss to let JMS destinations be accessible using JNDI to a framework like Spring. That appears possible if you are using Websphere or Geronimo though. Probably reason enough to consider HornetQ with JBoss instead.