使用Spring ldap时的类强制转换异常

时间:2014-05-15 01:54:37

标签: java spring spring-ldap

使用spring ldap执行搜索时,我遇到以下异常:

java.lang.ClassCastException: com.sun.jndi.ldap.LdapCtx cannot be cast to org.springframework.ldap.core.DirContextAdapter

我正在使用java SE实用程序,它使用JAAS执行kerberos登录,并运行代码以使用spring-ldap作为特权操作来查询ldap服务器。

我的应用程序中没有使用任何特定的弹簧配置。 有人能表明我做错了吗? 非常感谢。我在起诉spring-ldap 1.3.1.RELEASE

0 个答案:

没有答案
相关问题