ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antti Luoma" <anlu...@gmail.com>
Subject Re: java.sql.SQLException: LDAP Does Not Support Transactions
Date Sun, 17 Feb 2008 19:41:03 GMT
Hi,

Try with <sql autocommit=true  ...>


/antti/

2008/2/6, karthi palanisamy <karthi.palanisamy@orangescape.com>:
>
>
> I have wriiten a ant task to insert a user in ADS using ldapjdbc driver.
> Its
> throwing java.sql.SQLException: LDAP Does Not Support Transactions error
> any
> idea on this..
> My source code is
>
> <?xml version="1.0"?>
>
> <project default="main" basedir=".">
>
>
> <target name="main" >
>         <sql
>             driver="com.octetstring.jdbcLdap.sql.JdbcLdapDriver"
>             url="jdbc:ldap://10.0.0.110:389/?SEARCH_SCOPE:=subTreeScope"
>             userid="CN=Administrator,CN=Users,DC=osn,DC=com"
>             password="orange"
>                         escapeprocessing="true"
>                 >
>             <classpath>
>                 <pathelement location="c:/Derby/jdbcLdap.jar"/>
>                 <pathelement location="c:/Derby/ldap.jar"/>
>
>         </classpath>
>                 INSERT INTO  CN=kavin,CN=Users,DC=osn,DC=com
>
> (objectClass,objectClass,objectClass,objectClass,cn,sn,sAMAccountName,userPassword
>                 VALUES
>
> ('top','person','organizationalPerson','user','kavin','kavin','kavin','kavin');
>         </sql>
>   </target>
>
> </project>
>
> --
> View this message in context:
> http://www.nabble.com/java.sql.SQLException%3A-LDAP-Does-Not-Support-Transactions-tp15305948p15305948.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
-Antti-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message