camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: An LDAP Consumer would be the LDAP server itself!
Date Wed, 31 Oct 2012 10:29:06 GMT
Hi

Can you check that you dont have a <from uri="ldap:xxx"/> in your Camel routes.
The error reported indicate that you are routing from ldap which the
component does not support.


On Wed, Oct 31, 2012 at 11:20 AM, martin11 <mato.krajcir@gmail.com> wrote:
> Hello,I`m newbie in Camel and I`m trying to create an LDAP connection and get
> some data to next proccessing.
> Unfortunately I got this exception and I don`t understand how to connect to
> LDAP.
> org.apache.camel.RuntimeCamelException: An LDAP Consumer would be the LDAP
> server itself! No such support here    at
> org.apache.camel.component.ldap.LdapEndpoint.createConsumer(LdapEndpoint.java:55)
> at
> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
> at
> org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
> at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133)
>
> Is there any good tutorial for camel-ldap?
> I`m using camel version: 2.10.2
>
> and there is my applicationContext.xml:
> &lt;?xml version="1.0" encoding="UTF-8"?&gt; <beans
> xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:camel="http://camel.apache.org/schema/spring"     xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd">     <bean
> id="ldapserver" class="javax.naming.directory.InitialDirContext"
> scope="prototype">         <constructor-arg>             <props>
> <prop
> key="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</prop>
> <prop key="java.naming.provider.url">ldap://192.168.1.191:636</prop>
> <prop key="java.naming.factory.url.pkgs">com.sun.jndi.url</prop>
> <prop key="java.naming.referral">ignore</prop>                 <prop
> key="java.naming.security.authentication">simple</prop>
> <prop
> key="java.naming.security.principal">cn=readOnly,ou=test,o=point</prop>
> <prop key="java.naming.security.credentials">password</prop>
> </props>         </constructor-arg>     </bean>     <bean id="ldapProcessor"
> class="com.camel.ldap.LdapTransformProc"/>     <camelContext
> xmlns="http://camel.apache.org/schema/spring">         <route
> id="ldap-route">             <from uri="direct:processLdap"/>
> <to
> uri="ldap:ldapserver?base=ou=Brno,ou=czpointprod,o=czechpoint&amp;amp;scope=onelevel&amp;amp;returnedAttributes=czpKraj"/>
> <process ref="ldapProcessor"/>         </route>     </camelContext>
</beans>
> Thanks for your help.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/An-LDAP-Consumer-would-be-the-LDAP-server-itself-tp5721864.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message