I’m developing a plugin for Crowd.
@Inject
@ComponentImport
private LdapTemplate ldapTemplateCustom;
but throws me the exception ClassNotFoundException
What have I done wrong? How to import package org.springframework.ldap.core in my bundle?
I’m developing a plugin for Crowd.
@Inject
@ComponentImport
private LdapTemplate ldapTemplateCustom;
but throws me the exception ClassNotFoundException
What have I done wrong? How to import package org.springframework.ldap.core in my bundle?
Hi Cristian,
Crowd doesn’t OSGI export spring-ldap classes, which is what you seem to be trying to use. In general plugins get spring components from the plugin system, rather than the product itself, spring-ldap is not one of the ones provided.
You might try to bundle spring-ldap with your add-on instead, if you are trying to build an LDAP integration, though you should be aware of some interdependencies between spring libraries.