activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daoud AbdelMonem Faleh <abdelmonem.fa...@gmail.com>
Subject Starting broker fail under Apache Karaf 1.4.0
Date Wed, 23 Jun 2010 17:11:59 GMT
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.

Mime
View raw message