Hello, I'm testing a synchronization of ou with ibatis sqlMap on organizationalUnit objectClass, and i trying to declare a resulMap but i have an error like this :
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/resultMap'. Cause: java.lang.RuntimeException: Error configuring Result. Could not set ResultClass. Cause: java.lang.ClassNotFoundException: OrganizationalUnit Here is my XML definition sql-map-config.d/organizationalUnit.xml : <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd"> <sqlMap namespace="OrganizationalUnit"> <resultMap id="OrganizationalUnitResult" class="OrganizationalUnit"> <result property="ou" column="ou"/> <result property="l" column="l"/> <result property="description" column="description"/> </resultMap> <select id="getOu" resultMap="OrganizationalUnitResult" parameterClass="java.util.Map"> SELECT ou,l FROM OUDATA WHERE ou = #ou# AND l = #l# </select> <select id="getOuList" parameterClass="java.util.HashMap"> SELECT ou,l FROM OUDATA </select> <select id="getOuClean" resultMap="OrganizationalUnitResult" parameterClass="java.util.Map"> SELECT ou,l FROM OUDATA WHERE ou = #ou# AND l = #l# </select> </sqlMap> Could you tell me where i made a mistake ? Regards, Le 31/10/12, Clément OUDOT <[email protected]> a écrit : > 2012/10/31 "POISSON Frédéric" <[email protected]>: > > Hello Clément, > > > > Thanks for all theses responses. > > > > Your interpretation of documentation is very interesting because i don't see > > anywhere that ldap was an object from destination ldap and srcLdap for > > source ldap. Here is the documentation : > > > > > > "Simple interface to some methods to access an LDAP directory. > > > > This class is available as "ldap" or "srcLdap" in several JavaScript enabled > > parameters in the LSC configuration. The methods allow you to interact with > > an LDAP directory." > > > > > > So thanks for that information ! > > Yes, the documentation is very clear... > > > > > > > Now for the search base it seems for me (with the tests i made), that base > > you can indicate, is a prefix/suffix of the baseDN defined in the source or > > the destination ldap. So with ScriptableJndiServices you can't made a search > > on a namingContext which is outside baseDN definition ? > > > > To be honest, I never have to do searches outside baseDN. The solution > might be to declare a higher baseDN and adapt the filter? > > > > > > For the dataset, i will try it. > > > > > > For the bug, i've send it as Bug #541. > > > > > > Great. > > > Clément. > > -- Frederic Poisson
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

