[jboss-jira] [JBoss JIRA] (WFLY-5339) Missing ldap/ext package in sun.jdk module
Kamil Podlešák (JIRA)
issues at jboss.org
Mon Sep 14 12:32:00 EDT 2015
[ https://issues.jboss.org/browse/WFLY-5339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kamil Podlešák updated WFLY-5339:
---------------------------------
Steps to Reproduce:
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.
was:
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 exception:
{{
javax.naming.ConfigurationException: Cannot load implementation of javax.naming.ldap.StartTlsResponse [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.ldap.e
xt.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
}}
I don't have proper test case prepared and published, hopefully the example above is sufficient.
> Missing ldap/ext package in sun.jdk module
> ------------------------------------------
>
> Key: WFLY-5339
> URL: https://issues.jboss.org/browse/WFLY-5339
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 9.0.1.Final
> Environment: jdk 1.8
> Reporter: Kamil Podlešák
> Assignee: Jason Greene
>
> 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.
> {noformat}
> 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
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list