Bengt, Just to keep you informed, I solved the TxManager service unavailability issue by replacing "Apache ServiceMix Transaction" bundle by org.apache.felix.transaction bundle (http://www.mail-archive.com/[email protected]/msg09204.html)
However now wile the broker is starting an exception is popping out: Exception in thread "SpringOsgiExtenderThread-2" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Exported service object does not implement the given interface: class org.apache.activemq.pool.PooledConnectionFactoryBean is not assignable to interface javax.jms.ConnectionFactory And the broker fail again. --Daoud. Bengt Rodehav a écrit : > Daoud, > > I started from mvn:org.apache.activemq/activemq-karaf/5.3.1/xml/features but > then made my own activemq feature file where I standardised on one version > of Spring (2.5.6.SEC01). I also wanted to refer to the correct version of > Karaf which I believe was hardcoded in the feature file that comes with > ActiveMQ. > > /Bengt > > 2010/6/28 Daoud AbdelMonem Faleh <[email protected]> > > >> Bengt, >> >> Sorry I seam to have induced you into error. What I meant is that 1.0 >> version of org.apache.servicemix.transaction was failing with following >> message: >> org.springframework.beans.factory.BeanDefinitionStoreException: Invalid >> bean definition with name 'transactionLog' defined in URL >> [bundle://57.0:0/META-INF/spring/servicemix-tx.xml]: Could not resolve >> placeholder 'servicemix.base' >> Installing 1.2.0 solved this issue but the broker still fail to start. >> Good catch on Spring bundles that's what I got from installing feature >> from: mvn:org.apache.activemq/activemq-karaf/5.3.2/xml/features >> What feature url have you installed from? >> >> Kind Regards, >> --Daoud. >> >> >> Bengt Rodehav a écrit : >> >>> Glad it worked although the 1.0 version of >>> >> org.apache.servicemix.transaction >> >>> has workded for me. Maybe our configurations differ slightly in other >>> >> places >> >>> requiring you to use the 1.2 version. >>> >>> BTW I noticed you have both version 2.5.6 and version 2.5.6.SEC01 of >>> >> Spring >> >>> installed. Probably unnecessary. I had that too for a while but changed >>> >> to >> >>> 2.5.6.SEC01 in all my features. I think that's the version Spring >>> >> recommends >> >>> since it contains an important security fix. >>> >>> /Bengt >>> >>> 2010/6/27 Daoud AbdelMonem Faleh <[email protected]> >>> >>> >>> >>>> Thanks Bengt for the quick reply :) >>>> I've looked at that thread and applied the mentioned workaround w/o >>>> success either. >>>> org.apache.servicemix.transaction bundle was failing itself so I >>>> installed version 1.2.0 and it's no longer failing. >>>> >>>> osgi:list gives: >>>> >>>> ka...@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) >>>> >>>> >>>> Thanks for your time. >>>> >>>> Bengt Rodehav a écrit : >>>> >>>> >>>>> I had a similar problem. See: >>>>> >>>>> http://old.nabble.com/Karaf-1.4.0-and-ActiveMQ-5.3.1-td28191404.html >>>>> >>>>> <http://old.nabble.com/Karaf-1.4.0-and-ActiveMQ-5.3.1-td28191404.html >>>>> Regarding >>>>> javax.transaction I think you should install the following bundle: >>>>> >>>>> >>>>> >>>>> >>>>> >> >> mvn:org.apache.servicemix.transaction/org.apache.servicemix.transaction/1.0.0 >> >>>>> /Bengt >>>>> >>>>> 2010/6/27 Daoud AbdelMonem Faleh <[email protected]> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi OSGi folks, >>>>>> >>>>>> Sorry to bother you with a question that may not be really for this >>>>>> mailing list. I've tried into ActiveMQ users list without success. >>>>>> I'd like to know if anyone here was able to run ActiveMQ 5.3.2 under >>>>>> >>>>>> >>>> Karaf? >>>> >>>> >>>>>> I've used: >>>>>> features:addUrl >>>>>> mvn:org.apache.activemq/activemq-karaf/5.3.2/xml/features to install >>>>>> >> it >> >>>>>> but keep getting : >>>>>> 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]) >>>>>> >>>>>> Even thought all required bundles are installed and correctly started. >>>>>> >>>>>> Sorry again, >>>>>> --Daoud. >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: [email protected] >>>>>> For additional commands, e-mail: [email protected] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>>> >>>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

