You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Felipe Fraga <fe...@gmail.com> on 2010/04/17 18:11:12 UTC

ServiceMix Tutorial JMS Endpoint failure

Hello all.

I am new to integration and I am using ServiceMix4. I am trying to run
this tutorial:
http://servicemix.apache.org/26-beginner-exercise.html

The xbean.xml for the jms su has this fragment:

xmlns:amq="http://activemq.org/config/1.0">
<amq:connectionFactory id="connectionFactory"
brokerURL="tcp://localhost:61616" />

When deployed, service mix complains:
org.springframework.beans.factory.BeanDefinitionStoreException:
Unrecognized xbean namespace mapping: http://activemq.org/config/1.0

Then I went here:
http://servicemix.apache.org/servicemix-jms.html

Changed configuration to add:
<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="tcp://localhost:61216" />
</bean>

and removed the problematic namespace.

Then Servicemix complains:
java.lang.ClassNotFoundException:
org.apache.activemq.ActiveMQConnectionFactory in classloader
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@861253


If I run on the karaf console:
osgi:list | grep activemq

I get:
[  87] [Active     ] [            ] [       ] [   60] activemq-core
(5.3.0.fuse-01-00)
[  88] [Active     ] [            ] [       ] [   60] activemq-ra
(5.3.0.fuse-01-00)
[  89] [Active     ] [            ] [       ] [   60] activemq-console
(5.3.0.fuse-01-00)
[  90] [Active     ] [            ] [       ] [   60] activemq-pool
(5.3.0.fuse-01-00)
[ 141] [Active     ] [            ] [       ] [   60]
activemq-broker.xml (0.0.0)


Does it seem right?
Why the ConnectionFactory isn't in the classpath?

Thanks to all in advance,

Felipe