help with activemq please
darkcloudbird Jul 8, 2010 3:34 AMHi, before I state the error, here are a few configuration i have.
in my pom.xml
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>5.3.0-fuse-01-00</version> <-- same as version installed on my esb
<type>bundle</type>
</dependency>
....
<Import-Package>
javax.ws.rs,
org.apache.cxf.jaxrs.utils,
org.springframework.beans.factory.config,
org.apache.camel.osgi,
org.apache.camel.component.jms,
(if I add org.apache.activemq.ActiveMQConnectionFactory here I will get Missing constraint error when i start the bundle)
***
</Import-Package>
in my bundle-context.xml
<bean id="activemq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
</bean>
</property>
</bean>
when i start the bundle, I got the following exception
Exception in thread "SpringOsgiExtenderThread-68" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'activem
q' defined in URL bundleentry://219.fwk13059051/META-INF/spring/bundle-context.xml: Cannot create inner bean 'org.apache.activemq.ActiveMQConnectionFactory
#1ed790e' of type while setting bean property 'connectionFactory'; nested exception is org.springframework.be
ans.factory.CannotLoadBeanClassException: Cannot find class for bean with name 'org.apache.activemq.ActiveMQC
onnectionFactory#1ed790e' defined in URL bundleentry://219.fwk13059051/META-INF/spring/bundle-context.xml; nested exception is java.lang.ClassNotFoundExcep
tion: org.apache.activemq.ActiveMQConnectionFactory not found from bundle
here are installed bundle related to activemq in my esb container.
karaf@root> osgi:list | grep activemq
activemq-core (5.3.0.fuse-01-00)
activemq-ra (5.3.0.fuse-01-00)
activemq-console (5.3.0.fuse-01-00)
activemq-pool (5.3.0.fuse-01-00)
activemq-camel (5.3.0.fuse-01-00)
I tried to add org.apache.activemq in <import-package> but still does not work, I got the missing contraint error.
Please help, Thanks in advanced