Lucas,
Estou na mesma situação.
Como você sugeriu, coloquei o applicationContext.xml no classpath.
Só que eu precisava utilizar métodos da classe LdapTemplate. Para isso fiz o seguinte service:
Ao rodar a aplicação, dá o seguinte erro:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'loginServiceImpl': Unsatisfied dependency expressed through constructor argument with index 1 of type [org.springframework.ldap.core.LdapTemplate]: : No matching bean of type [org.springframework.ldap.core.LdapTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.springframework.ldap.core.LdapTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
.
.
... 53 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.springframework.ldap.core.LdapTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
.
.
... 67 more
Alguma idéia?
Obrigada.
This message was edited 1 time. Last update was at 01/06/2011 09:00:04
|