You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "gustavo.maurizio" <gm...@me.com> on 2016/10/29 13:19:25 UTC

camel 2.18 activemq not working under karaf

using any activemq destination fails in camel 2.18 under all 4 versions of
Karaf. Even if user and password are specified correctly and work in 2.17.3,
not the case in 2.18

2016-10-29 13:16:07,417 | WARN  | gt.common/deploy |
AnnotationTypeConverterLoader    | 110 - org.apache.camel.camel-core -
2.18.0 | Ignoring converter type:
org.apache.activemq.camel.converter.ActiveMQMessageConverter as a dependent
class could not be found: java.lang.NoClassDefFoundError:
org/apache/camel/component/jms/JmsBinding
java.lang.NoClassDefFoundError: org/apache/camel/component/jms/JmsBinding
	at java.lang.Class.getDeclaredMethods0(Native Method)[:1.8.0_92]
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)[:1.8.0_92]
	at java.lang.Class.getDeclaredMethods(Class.java:1975)[:1.8.0_92]

-----
Caused by: java.lang.IllegalArgumentException: Password must also be
provided when using username/password as credentials.
	at
org.apache.camel.component.jms.JmsComponent.createEndpoint(JmsComponent.java:969)
	at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:112)
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:602)
	... 69 more




--
View this message in context: http://camel.465427.n5.nabble.com/camel-2-18-activemq-not-working-under-karaf-tp5789455.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel 2.18 activemq not working under karaf

Posted by "gustavo.maurizio" <gm...@me.com>.
solved the problem. Seems like the bean definition for ActiveMQ needs the
connection factory explicitly defined.
    
    <bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent" >
        <property name="connectionFactory">
          <bean class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL" value="${activemq.url}"/>
            <property name="userName"  value="${activemq.username}"/>
            <property name="password"  value="${activemq.password}"/>
          </bean>
        </property>
    </bean>


In the past, we used just 
    
    <bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent" >
            <property name="brokerURL" value="${activemq.url}"/>
            <property name="userName"  value="${activemq.username}"/>
            <property name="password"  value="${activemq.password}"/>
    </bean>




--
View this message in context: http://camel.465427.n5.nabble.com/camel-2-18-activemq-not-working-under-karaf-tp5789455p5789520.html
Sent from the Camel - Users mailing list archive at Nabble.com.