You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating new instance PagedResultsRequestControl I’ve got:
java.lang.NoClassDefFoundError: com.sun.jndi.ldap.ctl.PagedResultsResponseControl
at org.springframework.ldap.control.PagedResultsRequestControl.class$(PagedResultsRequestControl.java:42)
at org.springframework.ldap.control.PagedResultsRequestControl.(PagedResultsRequestControl.java:42)
The reason is line:
```
private static final Class DEFAULT_RESPONSE_CONTROL = PagedResultsResponseControl.class;
```
On Java 6 (and probably 5) I cannot find com.sun.jndi.ldap.ctl.PagedResultsResponseControl – but there is javax.naming.ldap.PagedResultsResponseControl.
I’ve changed PagedResultsRequestControl to use javax.naming.ldap.PagedResultsResponseControl and it works fine for me but it’s only Java 5 compatible…
The text was updated successfully, but these errors were encountered:
This can be solved by adding the ldapbp.jar library to the classpath. Either way the hard reference should be removed, so I’m planning this for the upcoming release.
Now removed all explicit dependencies on any of the control classes and defaulting to the Java5 classes. If the Java5 classes are not available we will try to fallback to the Booster Pack stuff.
Damian Gołda(Migrated from LDAP-118) said:
While creating new instance PagedResultsRequestControl I’ve got:
java.lang.NoClassDefFoundError: com.sun.jndi.ldap.ctl.PagedResultsResponseControl
at org.springframework.ldap.control.PagedResultsRequestControl.class$(PagedResultsRequestControl.java:42)
at org.springframework.ldap.control.PagedResultsRequestControl.(PagedResultsRequestControl.java:42)
The reason is line:
```
private static final Class DEFAULT_RESPONSE_CONTROL = PagedResultsResponseControl.class;
```
On Java 6 (and probably 5) I cannot find com.sun.jndi.ldap.ctl.PagedResultsResponseControl – but there is javax.naming.ldap.PagedResultsResponseControl.
I’ve changed PagedResultsRequestControl to use javax.naming.ldap.PagedResultsResponseControl and it works fine for me but it’s only Java 5 compatible…
The text was updated successfully, but these errors were encountered: