2012/11/8 "POISSON Frédéric" <[email protected]>
> 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 ? > > We never use resultMap in LSC, I think it is not supported. Why do you want to use it? Clément.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

