spring-ldap
spring-ldap copied to clipboard
How to configure 2.3.1
I am attempting to upgrade from 2.0.4 to 2.3.1 and I am having some difficulties.
I have added the latest spring-data-commons (Ingalls) and spring-data-ldap (1.0.0). It all seems to compile fine after updating the package names to use the spring data packages.
The problem I get is at runtime:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [repositories] Offending resource: class path resource [embedded_springldap.xml]
embedded_springldap.xml
has:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:ldap="http://www.springframework.org/schema/ldap"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/ldap
http://www.springframework.org/schema/ldap/spring-ldap.xsd">
....
<ldap:repositories base-package="com.example.package" />
...
I'm trying to follow the docs but it is rather light on the details.
The LdapNamespaceHandler
used to register the parser but now it doesn't and I can't seem to find out what should.
It is probably a classpath problem but I can't work out what is missing.
I have the same issue. Is there a solution?
Regards
Matt