Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012
    Posts
    6

    Default Cannot instantiate class: com.sun.jndi.ldap.LdapCtxFactory

    Hi,

    From time to time OX (Appsuite Server 7.4.0-Rev16) spits out the error 'Login not possible at the moment. Please try again later.'. In the server logs the attached (stacktrace.txt) stacktrace appears. When this happens the only way to 'un-botch' OX is to restart OX.

    It looks like for some reason OX all of a sudden needs the class 'com.sun.jndi.ldap.LdapCtxFactory'. This class is not explicitly imported by the LDAP auth bundle. I would have expected that the bootdelegation in Equinox would have taken care of this but for some reason it seems it didn't?

    I added the following line to '/opt/open-xchange/osgi/config.ini.template':
    Code:
    org.osgi.framework.bootdelegation=com.sun.*,org.w3c.*,org.xml.*,sun.*
    I don't know if this will fix the problem. Since I can't reproduce it. It just happens randomly it seems.

    Any thoughts?

    EDIT: I should probably also mention that this is on CentOS 6. I tried multiple JVM's: OpenJDK 6, OpenJDK 7 and Oracle JVM 7.
    Attached Files Attached Files
    Last edited by KermitTheFragger; 11-15-2013 at 10:43 AM.

  2. #2
    Join Date
    Nov 2013
    Posts
    1

    Default

    Hi Kermit,
    This is happening to me. After adding that code to the config.in.template; did this happen to you again?. In other words, were you able to resolve the problem?


    Rolando

  3. #3
    Join Date
    Oct 2012
    Posts
    6

    Default

    Hi Rolriley,

    No after correcting this OX did not crash again. I believe this change is also present in the latest OX release (or rather they changed the bundle manifest of the LDAP plugin to fix it).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •