com.sun.jndi.ldap.LdapCtxFactory not found while adding add-on

XMLWordPrintable

    • 1
    • 2

      I got this error message while trying to update a third party add-ons on a specific Linux platform. The JIRA server is 6.4.11, Java VM is 1.8, OS is Linux.

       

      2017-04-25 17:52:50,391 localhost-startStop-1 INFO      [tcm.core.upgrade.AbstractTcmUpgradeTask] =========================================

      2017-04-25 17:52:50,404 localhost-startStop-1 INFO      [tcm.core.upgrade.AbstractTcmUpgradeTask] Starting upgrade task (buildNumber=10) : From scratch : Creating all TM & CHARM roles, groups & permissions

      2017-04-25 17:52:50,404 localhost-startStop-1 INFO      [core.upgrade.task.TcmUpgradeTask010] Load Localization

      2017-04-25 17:52:50,404 localhost-startStop-1 INFO      [core.upgrade.task.TcmUpgradeTask010] Creating groups

      2017-04-25 17:52:50,646 localhost-startStop-1 ERROR      [sal.core.upgrade.PluginUpgrader] Upgrade failed: org.springframework.transaction.CannotCreateTransactionException: Could not create DirContext instan

      ce for transaction; nested exception is org.springframework.ldap.NoInitialContextException: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory; nested exception is javax.naming.NoInitialContextExcept

      ion: Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory not found from bundle [com.atlassian.sal.jira]]

      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 from bundle [com.atlassian.sal.jira]]

       

      My LDAP setting currently as follows:

      UserName = “CN=xxdap,OU=Service Accounts,OU=Ottawa,DC=XXALJ,DC=CORP”
      LDAP Schema
      Base DN:  Base DN = “OU=Ottawa,DC=XXALJ,DC=CORP“
      Additional User DN:
      Additional Group DN:
      LDAP Permissions
      Read Only
      Read Only, with Local Groups
      Read/Write
      Default Group Memberships:

      Advance Settings
      Secure SSL
      Enable Nested Groups
      Manage User Status Locally
      Use Paged Results results per page
      Follow Referrals
      Naive DN Matching
      Enable Incremental Synchronisation
      Synchronisation Interval (minutes): required
      Read Timeout (seconds):
      Search Timeout (seconds):
      Connection Timeout (seconds):
      User Settings:
      User Object Class: required
      User Object Filter: required
      User Name Attribute: required
      User Name RDN Attribute: required
      User First Name Attribute: required
      User Last Name Attribute: required
      User Display Name Attribute: required
      User Email Attribute: required
      User Password Attribute: required
      User Password Encryption: required
      User Unique ID Attribute:
      Group Schema Settings:
      Group Object Class: required
      Group Object Filter: required
      Group Name Attribute: required
      Group Description Attribute: required
      Membership Schema Settings:
      Group Members Attribute: required
      User Membership Attribute: required
      Use the User Membership Attribute:
      When finding the user's group membership
      When finding the members of a group

      I am wondering if you could help. Thank you in advance.

       

            Assignee:
            Unassigned
            Reporter:
            Robert Le Van Mao
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: