Add groups with GroupManager or CrowdServiceImpl fails

Hello,

Whe have a plugin that adds groups in jira 5.2.2, I use SAL plugin to automate the import  but now when I try to add groups in my JIRA 7.1.7  I get this error:

 

com.atlassian.crowd.exception.runtime.OperationFailedException:
org.springframework.transaction.CannotCreateTransactionException:
Could not create DirContext instance for transaction;
nested exception is org.springframework.ldap.NoInitialContextException:
Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory;
nested exception is javax.naming.NoInitialContextException:
Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory
[Root exception is java.lang.ClassNotFoundException:
com.sun.jndi.ldap.LdapCtxFactory not found by myPlugin [199]]
at com.atlassian.crowd.embedded.core.CrowdServiceImpl.addGroup(CrowdServiceImpl.java:545)
at com.atlassian.crowd.embedded.core.DelegatingCrowdService.addGroup(DelegatingCrowdService.java:151)
at com.atlassian.crowd.embedded.core.FilteredCrowdServiceImpl.addGroup(FilteredCrowdServiceImpl.java:271)

 

The groups are local, why CrowdServiceImpl needs DirContext object?

 

Thank you for help!

1 answer

This widget could not be displayed.

This error looks like this one here Spring scan

If you have used SAL plugin, you will probably get the same problem.

 

I switched to another solution, I use JiraService but with this solution, I must put my jar file in WEB-INF/lib

 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

135 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you