Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-2520

Missing ldap/ext package in sun.jdk module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.ER4
    • None
    • None
    • None
    • Hide

      Run example code from http://docs.oracle.com/javase/jndi/tutorial/ldap/ext/starttls.html
      (http://docs.oracle.com/javase/jndi/tutorial/ldap/ext/src/StartTls.java) inside ear deployed to wildfly server. The line
      StartTlsResponse tls = (StartTlsResponse) ctx.extendedOperation(new StartTlsRequest());
      throws the exception from main description.

      I don't have proper test case prepared and published, hopefully the example above is sufficient.

      Show
      Run example code from http://docs.oracle.com/javase/jndi/tutorial/ldap/ext/starttls.html ( http://docs.oracle.com/javase/jndi/tutorial/ldap/ext/src/StartTls.java ) inside ear deployed to wildfly server. The line StartTlsResponse tls = (StartTlsResponse) ctx.extendedOperation(new StartTlsRequest()); throws the exception from main description. I don't have proper test case prepared and published, hopefully the example above is sufficient.

      sun.jdk module already contains package com.sun.jndi.ldap needed to access LDAP servers via jndi (AS7-1500), but it com.sun.jndi.ldap.ext is missing. This means that Start TLS does not work as documented (http://docs.oracle.com/javase/jndi/tutorial/ldap/ext/starttls.html), failing with ClassNotFoundException.

      javax.naming.ConfigurationException: Cannot load implementation of javax.naming.ldap.StartTlsResponse [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.ext.StartTlsResponseImpl from [Module "deployment.xxx.ear.xxx.jar:main" from Service Module Loader]]
      at javax.naming.ldap.StartTlsRequest.wrapException(StartTlsRequest.java:218)
      at javax.naming.ldap.StartTlsRequest.createExtendedResponse(StartTlsRequest.java:207)
      at com.sun.jndi.ldap.LdapCtx.extendedOperation(LdapCtx.java:3269)
      at javax.naming.ldap.InitialLdapContext.extendedOperation(InitialLdapContext.java:184)
      at javax.naming.ldap.InitialLdapContext.extendedOperation(InitialLdapContext.java:184)
      at ch.ips.g2.b.core.adp.mailbox.external.LdapExecutor.executeOperation(LdapExecutor.java:115)
      ... 170 more
      

              bstansbe@redhat.com Brian Stansberry
              podlesakk Kamil Podlešák (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: