The code works fine on jboss5.1, but porting to jboss7 causes ObjectRetreivalException
The problem started with SpringLdap 1.3
Using the same configuration and code source available at ( (http://static.springsource.org/spring-ldap/docs/1.3.x/reference/html/introduction.html )
gives following exception.
org.springframework.ldap.core.ObjectRetrievalException: Binding did not contain any object.
---------------------------------------
Without Springldap it gives the following exception
Root exception is javax.naming.NotContextException: Cannot create context for: ldap://ForestDnsZones
I am using the TraditionalPersonDAOImpl available on SpringLdap
(http://static.springsource.org/spring-ldap/docs/1.3.x/reference/html/introduction.html )
If i run the code as standalone java application it works fine. Also it works in jboss5.1