I have discovered a problem with activemq and pooling engine when using
activemq 5.3.1 on karaf 1.4

Error

Exception in thread "SpringOsgiExtenderThread-12"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.os
gi.service.exporter.support.OsgiServiceFactoryBean#0': Invocation of init
method failed; nested exception is java.lang.IllegalArgumentException:
Exported servic
e object does not implement the given interface: class
org.apache.activemq.pool.PooledConnectionFactoryBean is not assignable to
interface javax.jms.ConnectionF
actory
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)

        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:6
9)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
        at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.ja
va:320)
        at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterAp
plicationContextExecutor.java:136)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Exported service object does
not implement the given interface: class
org.apache.activemq.pool.PooledConnectionFa
ctoryBean is not assignable to interface javax.jms.ConnectionFactory
        at org.springframework.util.Assert.isAssignable(Assert.java:368)
        at
org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet(OsgiServiceFactoryBean.java:197)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
        ... 17 more

Lis tof bundles

   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 ServiceMix
Bundles: aopalliance-1.0 (1.0.0.3)
[  34] [Active     ] [            ] [       ] [   60] Spring Core
(2.5.6.SEC01)
[  35] [Active     ] [            ] [       ] [   60] Spring Beans
(2.5.6.SEC01)
[  36] [Active     ] [            ] [       ] [   60] Spring AOP
(2.5.6.SEC01)
[  37] [Active     ] [            ] [       ] [   60] Spring Context
(2.5.6.SEC01)
[  38] [Active     ] [            ] [       ] [   60] Spring Context Support
(2.5.6.SEC01)
[  39] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Specs :: ACTIVATION API 1.4 (1.4.0)
[  40] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Specs :: JAXB API 2.1 (1.4.0)
[  41] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Specs :: STAX API 1.0 (1.4.0)
[  42] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: jaxb-impl-2.1.12 (2.1.12.1)
[  43] [Active     ] [            ] [       ] [   60] Commons Management
(1.0)
[  44] [Active     ] [            ] [       ] [   60] camel-core (2.2.0)
[  45] [Active     ] [            ] [       ] [   60] Spring Transaction
(2.5.6.SEC01)
[  46] [Active     ] [            ] [       ] [   60] geronimo-jta_1.1_spec
(1.1.1)
[  47] [Active     ] [            ] [       ] [   60] Commons Pool (1.5.4)
[  48] [Active     ] [            ] [       ] [   60] geronimo-jms_1.1_spec
(1.1.1)
[  49] [Active     ] [            ] [       ] [   60] Spring JMS
(2.5.6.SEC01)
[  50] [Active     ] [            ] [       ] [   60] camel-jms (2.2.0)
[  51] [Active     ] [            ] [       ] [   60] camel-bindy (2.2.0)
[  52] [Active     ] [            ] [Failed ] [   60] ActiveMQ Queuing
engine (1.0.0.SNAPSHOT)
[  53] [Active     ] [            ] [Started] [   60] Camel Queuing Service
(1.0.0.SNAPSHOT)
[  54] [Active     ] [            ] [       ] [   60] Report Incident Model
Bundle (1.0.0.SNAPSHOT)
[  55] [Active     ] [            ] [Started] [   60] Report Incident
Persistence Bundle (1.0.0.SNAPSHOT)
[  56] [Active     ] [            ] [Started] [   60] Report Incident
Service Bundle (1.0.0.SNAPSHOT)
[  57] [Active     ] [            ] [       ] [   60] Report Incident
Webservice Bundle (1.0.0.SNAPSHOT)
[  58] [Active     ] [            ] [Waiting] [   60] Report Incident
Routing Bundle (1.0.0.SNAPSHOT)
[  59] [Active     ] [            ] [       ] [   60] Report Incident Web
Bundle (1.0.0.SNAPSHOT)
[  60] [Active     ] [            ] [       ] [   60] activemq-camel (5.3.1)
[  61] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: commons-dbcp-1.2.2 (1.2.2.3)
[  62] [Active     ] [            ] [       ] [   60] MySQL AB's JDBC Driver
for MySQL (5.1.6)
[  63] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: cglib-2.1_3 (2.1.0.3_4)
[  64] [Active     ] [            ] [       ] [   60] spring-osgi-io (1.2.0)
[  65] [Active     ] [            ] [       ] [   60] spring-osgi-core
(1.2.0)
[  66] [Active     ] [            ] [       ] [   60] spring-osgi-extender
(1.2.0)
[  67] [Active     ] [            ] [       ] [   60] spring-osgi-annotation
(1.2.0)
[  68] [Active     ] [Created     ] [       ] [   60] Apache Felix Karaf ::
Spring Deployer (1.2.0)
[  69] [Active     ] [            ] [       ] [   60] camel-spring-osgi
(2.2.0)
[  70] [Active     ] [            ] [       ] [   60] Spring Web
(2.5.6.SEC01)
[  71] [Active     ] [            ] [       ] [   60] spring-osgi-web
(1.2.0)
[  72] [Active     ] [            ] [       ] [   60]
geronimo-servlet_2.5_spec (1.1.2)
[  73] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: jetty-6.1.14 (6.1.14.1)
[  74] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - API
(0.7.1)
[  75] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Service SPI (0.7.1)
[  76] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Runtime (0.7.1)
[  77] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - Jetty
(0.7.1)
[  78] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: asm-2.2.3 (2.2.3.3)
[  79] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: jetty-6.1.19 (6.1.19.2)
[  80] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: commons-codec-1.3 (1.3.0.2)
[  81] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: jdom-1.1 (1.1.0.2)
[  82] [Active     ] [            ] [       ] [   60] jettison (1.2)
[  83] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: ant-1.7.0 (1.7.0.3)
[  84] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: bcel-5.2 (5.2.0.2)
[  85] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: xalan-2.7.1 (2.7.1.2)
[  86] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: xercesImpl-2.9.1 (2.9.1.3)
[  87] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: xmlbeans-2.4.0 (2.4.0.3)
[  88] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: xmlsec-1.4.3 (1.4.3.2)
[  89] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: xmlresolver-1.2 (1.2.0.2)
[  90] [Active     ] [            ] [       ] [   60] Woodstox XML-processor
(4.0.7)
[  91] [Active     ] [            ] [       ] [   60] Stax2 API (3.0.1)
[  92] [Active     ] [            ] [       ] [   60] XmlSchema (1.4.5)
[  93] [Active     ] [            ] [       ] [   60] Commons Lang (2.4)
[  94] [Active     ] [            ] [       ] [   60] Commons Collections
(3.2.1)
[  95] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: antlr-2.7.7 (2.7.7.2)
[  96] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: oro-2.0.8 (2.0.8.3)
[  97] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: velocity-1.6.2 (1.6.2.3)
[  98] [Active     ] [            ] [       ] [   60] Axiom API (1.2.8)
[  99] [Active     ] [            ] [       ] [   60] Axiom API (1.2.8)
[ 100] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: mail-1.4.1 (1.4.1.2)
[ 101] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: neethi-2.0.4 (2.0.4.2)
[ 102] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: abdera-0.4.0-incubating (0.4.0.incubating_3)
[ 103] [Active     ] [            ] [       ] [   60]
geronimo-jaxws_2.1_spec (1.0)
[ 104] [Active     ] [            ] [       ] [   60]
geronimo-annotation_1.0_spec (1.1.1)
[ 105] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Specs :: SAAJ API 1.3 (1.4.0)
[ 106] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: wsdl4j-1.6.2 (1.6.2.2)
[ 107] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Specs :: JSR311 API 1.0 (1.4.0)
[ 108] [Active     ] [            ] [       ] [   60]
geronimo-ws-metadata_2.0_spec (1.1.2)
[ 109] [Active     ] [            ] [Started] [   60] Apache CXF Bundle Jar
(2.2.6)
[ 110] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: commons-io-1.3.2 (1.3.2.3)
[ 111] [Active     ] [            ] [       ] [   60] camel-cxf (2.2.0)
[ 112] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - WAR (0.7.1)
[ 113] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
Extender - Whiteboard (0.7.1)
[ 114] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-connector_1.5_spec (2.0.0)
[ 115] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: howl-1.0.1-1 (1.0.1.1_1)
[ 116] [Active     ] [            ] [       ] [   60] Geronimo TxManager ::
Transaction (2.2.0.r634076)
[ 117] [Active     ] [            ] [Started] [   60] Apache ServiceMix
Transaction (1.0.0)
[ 118] [Active     ] [            ] [       ] [   60] Geronimo TxManager ::
Connector (2.1.3)
[ 119] [Active     ] [            ] [       ] [   60] Jencks (2.2)
[ 120] [Active     ] [            ] [       ] [   60]
geronimo-j2ee-management_1.1_spec (1.0.1)
[ 121] [Active     ] [            ] [       ] [   60] Apache Commons Pool
Bundle (1.4)
[ 122] [Active     ] [            ] [       ] [   60] xbean-spring (3.5)
[ 123] [Active     ] [            ] [       ] [   60] kahadb (5.3.1)
[ 124] [Active     ] [            ] [       ] [   60] activemq-core (5.3.1)
[ 125] [Active     ] [            ] [       ] [   60] activemq-ra (5.3.1)
[ 126] [Active     ] [            ] [       ] [   60] activemq-console
(5.3.1)
[ 127] [Active     ] [            ] [       ] [   60] activemq-pool (5.3.1)
[ 128] [Active     ] [            ] [       ] [   60] Wicket (1.3.6)
[ 129] [Active     ] [            ] [       ] [   60] Wicket IoC common code
(1.3.6)
[ 130] [Active     ] [            ] [       ] [   60] Wicket Spring
Integration (1.3.6)
[ 131] [Active     ] [            ] [       ] [   60] Wicket Spring
Integration through Annotations (1.3.6)
[ 132] [Active     ] [            ] [       ] [   60] Wicket Extensions
(1.3.6)
[ 133] [Active     ] [            ] [       ] [   60] Spring ORM
(2.5.6.SEC01)
[ 134] [Active     ] [            ] [       ] [   60] Spring JDBC
(2.5.6.SEC01)
[ 135] [Active     ] [            ] [       ] [   60] Apache ServiceMix
Bundles: dom4j-1.6.1 (1.6.1.2)
[ 136] [Active     ] [            ] [       ] [   60] ANTLR (2.7.7)
[ 137] [Active     ] [            ] [       ] [   60] JGroups Toolkit
(2.5.1)
[ 138] [Active     ] [            ] [       ] [   60] Javassist Java
Programming Assistant (3.3.0.ga)
[ 139] [Active     ] [            ] [       ] [   60] JBoss Hibernate
Object-Relational Mapper (3.3.1.GA)

Kind regards,

Charles

-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://old.nabble.com/org.apache.activemq.pool.PooledConnectionFactoryBean-is-not-assignable-to-interface-javax.jms.ConnectionFactory-tp28096645p28096645.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to