You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Daoud AbdelMonem Faleh <ab...@gmail.com> on 2010/06/23 19:11:59 UTC

Starting broker fail under Apache Karaf 1.4.0

Hi all,

This is my first mail to ActiveMQ users mailing list and my first use of
the project, so please bear with me if am asking a dump question or if
it has been answered before. I couldn't find anything on the net nor in
jira.

System informations:
karaf info:
Karaf
  Karaf home                 
/home/dao/Documents/apache-felix-karaf-ActiveMQ/apache-felix-karaf-1.4.0
  Karaf base                 
/home/dao/Documents/apache-felix-karaf-ActiveMQ/apache-felix-karaf-1.4.0
  OSGi Framework              org.apache.felix.framework - 2.0.4

JVM
  Java Virtual Machine        Java HotSpot(TM) Server VM version 16.3-b01
  Vendor                      Sun Microsystems Inc.
  Uptime                      2 hours 54 minutes
  Total compile time          9.736 seconds
...
Operating system
  Name                        Linux version 2.6.28-19-generic
  Architecture                i386
  Processors                  2


I've tried to install ActiveMQ in Apache Karaf 1.4.0 following those steps:

osgi:install
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
features:addUrl mvn:org.apache.activemq/activemq-karaf/5.3.2/xml/features
features:install activemq
features:list (and verified that all bundles are in "Active" state)
activemq:create-broker -n alerts

alerts-broker.xml got created under deploy dir
A new bundle "alerts-broker.xml" appears in "Active" state. After a wile
the Spring state display "Failed". With the following messages in karaf.log:

16:11:46,983 | INFO  | raf-1.4.0/deploy |
ultOsgiApplicationContextCreator | ultOsgiApplicationContextCreator   67
| Discovered configurations {osgibundle:/META-INF/spring/*.xml} in
bundle [null (bh_alerts-broker.xml)]
16:11:46,987 | INFO  | ExtenderThread-2 |
OsgiBundleXmlApplicationContext  | pport.AbstractApplicationContext  411
| Refreshing
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@16d3d51:
display name
[OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
config=osgibundle:/META-INF/spring/*.xml)]; startup date [Wed Jun 23
16:11:46 CEST 2010]; root of context hierarchy
16:11:46,987 | INFO  | ExtenderThread-2 |
OsgiBundleXmlApplicationContext  | ractOsgiBundleApplicationContext  359
| Unpublishing application context OSGi service for bundle null
(bh_alerts-broker.xml)
16:11:46,988 | INFO  | ExtenderThread-2 |
XmlBeanDefinitionReader          | tory.xml.XmlBeanDefinitionReader  323
| Loading XML bean definitions from URL
[bundle://74.0:0/META-INF/spring/bh_alerts-broker.xml]
16:11:47,437 | INFO  | ExtenderThread-2 |
OsgiBundleXmlApplicationContext  | pport.AbstractApplicationContext  426
| Bean factory for application context
[org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@16d3d51]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@171ed5e
16:11:47,487 | INFO  | ExtenderThread-2 |
DependencyServiceManager         | startup.DependencyServiceManager  288
| Adding OSGi service dependency for importer [&transactionManager]
matching OSGi filter [(objectClass=javax.transaction.TransactionManager)]
16:11:47,487 | INFO  | ExtenderThread-2 |
DependencyServiceManager         | startup.DependencyServiceManager  232
| OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
config=osgibundle:/META-INF/spring/*.xml) is waiting for unsatisfied
dependencies [[&transactionManager]]


16:16:47,489 | WARN  | Timer-0          |
WaiterApplicationContextExecutor | WaiterApplicationContextExecutor  453
| Timeout occurred before finding service dependencies for
[OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
config=osgibundle:/META-INF/spring/*.xml)]
16:16:47,492 | INFO  | Timer-0          |
DefaultListableBeanFactory       | ort.DefaultSingletonBeanRegistry  421
| Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@171ed5e:
defining beans
[org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0,activemqConnectionFactory,pooledConnectionFactory,resourceManager,transactionManager,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0];
root of factory hierarchy
16:16:47,494 | ERROR | Timer-0          |
WaiterApplicationContextExecutor | WaiterApplicationContextExecutor  432
| Unable to create application context for [bh_alerts-broker.xml],
unsatisfied dependencies: Dependency on
[(objectClass=javax.transaction.TransactionManager)] (from bean
[&transactionManager])
org.springframework.context.ApplicationContextException: Application
context initialization for 'bh_alerts-broker.xml' has timed out
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
16:16:47,514 | ERROR | Timer-0          |
ContextLoaderListener            | BundleApplicationContextListener   50
| Application context refresh failed
(OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
config=osgibundle:/META-INF/spring/*.xml))
org.springframework.context.ApplicationContextException: Application
context initialization for 'bh_alerts-broker.xml' has timed out
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)

Kind Regards,
Daoud AbdelMonem Faleh.

Re: Starting broker fail under Apache Karaf 1.4.0

Posted by Daoud AbdelMonem Faleh <ab...@gmail.com>.
Hi again,

I investigated the issue a little bit more but still fail to get it working.
In the first steps I was getting "Failed" in Spring status for "Apache
ServiceMix Transaction". I guessed this maybe the bundle providing the
missing spring dependency. So I've updated "Apache ServiceMix
Transaction" bundle to 1.2.0 and it's no longer showing the Failed
status. However my broker still fail to start stating:
18:14:20,652 | ERROR | Timer-0          |
WaiterApplicationContextExecutor | WaiterApplicationContextExecutor  432
| Unable to create application context for [alerts-broker.xml],
unsatisfied dependencies: Dependency on
[(objectClass=javax.transaction.TransactionManager)] (from bean
[&transactionManager])
....

Any hint about what's missing/wrong?
Here is the output of osgi:list
karaf@root> osgi:list
START LEVEL 100
   ID   State         Blueprint      Spring    Level  Name
[   0] [Active     ] [            ] [       ] [    0] System Bundle (2.0.4)
[   1] [Active     ] [            ] [       ] [    5] OPS4J Pax Url -
mvn: (1.1.2)
[   2] [Active     ] [            ] [       ] [    5] OPS4J Pax Url -
wrap: (1.1.2)
[   3] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging
- API (1.4)
[   4] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging
- Service (1.4)
[   5] [Active     ] [            ] [       ] [   10] Apache Felix
Configuration Admin Service (1.2.4)
[   6] [Active     ] [            ] [       ] [   10] Apache Felix
Preferences Service (1.0.4)
[   7] [Active     ] [            ] [       ] [   11] Apache Felix File
Install (2.0.8)
[   8] [Active     ] [Created     ] [       ] [   20] Apache Geronimo
Blueprint Bundle (1.0.0)
[   9] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Features Management (1.4.0)
[  10] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Spring Deployer (1.4.0)
[  11] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Features Deployer (1.4.0)
[  12] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell Various Commands (1.4.0)
[  13] [Active     ] [            ] [       ] [   30] Apache Mina SSHD
:: Core (0.3.0)
[  14] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell Development Commands (1.4.0)
[  15] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Features Core (1.4.0)
[  16] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell ConfigAdmin Commands (1.4.0)
[  17] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell PackageAdmin Commands (1.4.0)
[  18] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Blueprint Deployer (1.4.0)
[  19] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: JAAS Modules (1.4.0)
[  20] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Admin Management (1.4.0)
[  21] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell OSGi Commands (1.4.0)
[  22] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: JAAS Config (1.4.0)
[  23] [Active     ] [            ] [       ] [   30]
org.osgi.impl.bundle.jmx (4.2.0.200907080519)
[  24] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Features Command (1.4.0)
[  25] [Active     ] [            ] [       ] [   30] Apache Felix Gogo
Shell Runtime (0.2.2)
[  26] [Active     ] [            ] [       ] [   30] Apache MINA Core
(2.0.0.RC1)
[  27] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell Console (1.4.0)
[  28] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Admin Core (1.4.0)
[  29] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Management (1.4.0)
[  30] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Admin Command (1.4.0)
[  31] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell Log Commands (1.4.0)
[  32] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
:: Shell SSH (1.4.0)
[  33] [Active     ] [            ] [       ] [   60] Apache Felix
Bundle Repository (1.4.0)
[  34] [Active     ] [Created     ] [       ] [   60] Apache Felix Karaf
:: Shell OBR Commands (1.4.0)
[  35] [Active     ] [            ] [       ] [   60]
geronimo-annotation_1.0_spec (1.1.1)
[  36] [Active     ] [            ] [       ] [   60]
geronimo-servlet_2.5_spec (1.2)
[  37] [Active     ] [            ] [       ] [   60] Spring Core (2.5.6)
[  38] [Active     ] [            ] [       ] [   60] Spring Beans (2.5.6)
[  39] [Active     ] [            ] [       ] [   60] Spring AOP (2.5.6)
[  40] [Active     ] [            ] [       ] [   60] Spring Context (2.5.6)
[  41] [Active     ] [            ] [       ] [   60] Spring Context
Support (2.5.6)
[  42] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: aopalliance-1.0 (1.0.0.1)
[  43] [Active     ] [            ] [       ] [   60] Spring Core
(2.5.6.SEC01)
[  44] [Active     ] [            ] [       ] [   60] Spring Beans
(2.5.6.SEC01)
[  45] [Active     ] [            ] [       ] [   60] Spring AOP
(2.5.6.SEC01)
[  46] [Active     ] [            ] [       ] [   60] Spring Context
(2.5.6.SEC01)
[  47] [Active     ] [            ] [       ] [   60] Spring Context
Support (2.5.6.SEC01)
[  48] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: cglib-2.1_3 (2.1.0.3_2)
[  49] [Active     ] [            ] [       ] [   60] spring-osgi-io (1.2.0)
[  50] [Active     ] [            ] [       ] [   60] spring-osgi-core
(1.2.0)
[  51] [Active     ] [            ] [       ] [   60]
spring-osgi-extender (1.2.0)
[  52] [Active     ] [            ] [       ] [   60]
spring-osgi-annotation (1.2.0)
[  53] [Active     ] [Created     ] [       ] [   60] Apache Felix Karaf
:: Spring Deployer (1.1.0.SNAPSHOT)
[  54] [Active     ] [            ] [       ] [   60]
geronimo-jta_1.1_spec (1.1.1)
[  55] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-connector_1.5_spec (2.0.0)
[  56] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: howl-1.0.1-1 (1.0.1.1_1)
[  57] [Active     ] [            ] [       ] [   60] Geronimo TxManager
:: Transaction (2.2.0.r634076)
[  58] [Active     ] [            ] [       ] [   60] Spring Transaction
(2.5.6)
[  60] [Active     ] [            ] [       ] [   60] Geronimo TxManager
:: Connector (2.2.0.r634076)
[  61] [Active     ] [            ] [       ] [   60]
geronimo-jms_1.1_spec (1.1.1)
[  62] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: jencks-2.1 (2.1.0.1)
[  63] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-management_1.1_spec (1.0.1)
[  64] [Active     ] [            ] [       ] [   60] Commons Pool (1.5.4)
[  65] [Active     ] [            ] [       ] [   60] Commons
Collections (3.2.1)
[  66] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: commons-lang-2.4 (2.4.0.3)
[  67] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: oro-2.0.8 (2.0.8.3)
[  68] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: velocity-1.6.2 (1.6.2.3)
[  69] [Active     ] [            ] [       ] [   60] Apache XBean ::
Spring (3.6)
[  70] [Active     ] [            ] [       ] [   60] activemq-core (5.3.2)
[  71] [Active     ] [            ] [       ] [   60] kahadb (5.3.2)
[  72] [Active     ] [            ] [       ] [   60] activemq-ra (5.3.2)
[  73] [Active     ] [            ] [       ] [   60] activemq-console
(5.3.2)
[  74] [Active     ] [            ] [       ] [   60] activemq-pool (5.3.2)
[  75] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix
Features :: ActiveMQ Commands (4.1.0.SNAPSHOT)
[  76] [Active     ] [            ] [Failed ] [   60] alerts-broker.xml
(0.0.0)
[  77] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Transaction (1.2.0)

Kind Regards,
--Daoud.


Daoud AbdelMonem Faleh a écrit :
> Hi all,
>
> This is my first mail to ActiveMQ users mailing list and my first use of
> the project, so please bear with me if am asking a dump question or if
> it has been answered before. I couldn't find anything on the net nor in
> jira.
>
> System informations:
> karaf info:
> Karaf
>   Karaf home                 
> /home/dao/Documents/apache-felix-karaf-ActiveMQ/apache-felix-karaf-1.4.0
>   Karaf base                 
> /home/dao/Documents/apache-felix-karaf-ActiveMQ/apache-felix-karaf-1.4.0
>   OSGi Framework              org.apache.felix.framework - 2.0.4
>
> JVM
>   Java Virtual Machine        Java HotSpot(TM) Server VM version 16.3-b01
>   Vendor                      Sun Microsystems Inc.
>   Uptime                      2 hours 54 minutes
>   Total compile time          9.736 seconds
> ...
> Operating system
>   Name                        Linux version 2.6.28-19-generic
>   Architecture                i386
>   Processors                  2
>
>
> I've tried to install ActiveMQ in Apache Karaf 1.4.0 following those steps:
>
> osgi:install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
> features:addUrl mvn:org.apache.activemq/activemq-karaf/5.3.2/xml/features
> features:install activemq
> features:list (and verified that all bundles are in "Active" state)
> activemq:create-broker -n alerts
>
> alerts-broker.xml got created under deploy dir
> A new bundle "alerts-broker.xml" appears in "Active" state. After a wile
> the Spring state display "Failed". With the following messages in karaf.log:
>
> 16:11:46,983 | INFO  | raf-1.4.0/deploy |
> ultOsgiApplicationContextCreator | ultOsgiApplicationContextCreator   67
> | Discovered configurations {osgibundle:/META-INF/spring/*.xml} in
> bundle [null (bh_alerts-broker.xml)]
> 16:11:46,987 | INFO  | ExtenderThread-2 |
> OsgiBundleXmlApplicationContext  | pport.AbstractApplicationContext  411
> | Refreshing
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@16d3d51:
> display name
> [OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
> config=osgibundle:/META-INF/spring/*.xml)]; startup date [Wed Jun 23
> 16:11:46 CEST 2010]; root of context hierarchy
> 16:11:46,987 | INFO  | ExtenderThread-2 |
> OsgiBundleXmlApplicationContext  | ractOsgiBundleApplicationContext  359
> | Unpublishing application context OSGi service for bundle null
> (bh_alerts-broker.xml)
> 16:11:46,988 | INFO  | ExtenderThread-2 |
> XmlBeanDefinitionReader          | tory.xml.XmlBeanDefinitionReader  323
> | Loading XML bean definitions from URL
> [bundle://74.0:0/META-INF/spring/bh_alerts-broker.xml]
> 16:11:47,437 | INFO  | ExtenderThread-2 |
> OsgiBundleXmlApplicationContext  | pport.AbstractApplicationContext  426
> | Bean factory for application context
> [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@16d3d51]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@171ed5e
> 16:11:47,487 | INFO  | ExtenderThread-2 |
> DependencyServiceManager         | startup.DependencyServiceManager  288
> | Adding OSGi service dependency for importer [&transactionManager]
> matching OSGi filter [(objectClass=javax.transaction.TransactionManager)]
> 16:11:47,487 | INFO  | ExtenderThread-2 |
> DependencyServiceManager         | startup.DependencyServiceManager  232
> | OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
> config=osgibundle:/META-INF/spring/*.xml) is waiting for unsatisfied
> dependencies [[&transactionManager]]
>
>
> 16:16:47,489 | WARN  | Timer-0          |
> WaiterApplicationContextExecutor | WaiterApplicationContextExecutor  453
> | Timeout occurred before finding service dependencies for
> [OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
> config=osgibundle:/META-INF/spring/*.xml)]
> 16:16:47,492 | INFO  | Timer-0          |
> DefaultListableBeanFactory       | ort.DefaultSingletonBeanRegistry  421
> | Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@171ed5e:
> defining beans
> [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0,activemqConnectionFactory,pooledConnectionFactory,resourceManager,transactionManager,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0];
> root of factory hierarchy
> 16:16:47,494 | ERROR | Timer-0          |
> WaiterApplicationContextExecutor | WaiterApplicationContextExecutor  432
> | Unable to create application context for [bh_alerts-broker.xml],
> unsatisfied dependencies: Dependency on
> [(objectClass=javax.transaction.TransactionManager)] (from bean
> [&transactionManager])
> org.springframework.context.ApplicationContextException: Application
> context initialization for 'bh_alerts-broker.xml' has timed out
>     at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462)
>     at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51)
>     at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
> 16:16:47,514 | ERROR | Timer-0          |
> ContextLoaderListener            | BundleApplicationContextListener   50
> | Application context refresh failed
> (OsgiBundleXmlApplicationContext(bundle=bh_alerts-broker.xml,
> config=osgibundle:/META-INF/spring/*.xml))
> org.springframework.context.ApplicationContextException: Application
> context initialization for 'bh_alerts-broker.xml' has timed out
>     at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:462)
>     at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:51)
>     at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:108)
>     at java.util.TimerThread.mainLoop(Timer.java:512)
>     at java.util.TimerThread.run(Timer.java:462)
>
> Kind Regards,
> Daoud AbdelMonem Faleh.
>
>