LDAP not working with java 14 or 15, ClassNotFoundException

Description

as per the mailing list https://dev.lucee.org/t/cannot-get-ldaps-to-work/7429/7

lucee.runtime.exp.NativeException: cannot load class through its string name, because no definition for the class with the specified name [com.sun.net.ssl.internal.ssl.Provider] could be found caused by (java.lang.ClassNotFoundException:com.sun.net.ssl.internal.ssl.Provider; java.lang.ClassNotFoundException:com.sun.net.ssl.internal.ssl.Provider;) at lucee.commons.lang.ClassUtil.loadClass(ClassUtil.java:225) at lucee.runtime.net.ldap.LDAPClient.setSecureLevel(LDAPClient.java:138) at lucee.runtime.tag.Ldap._doStartTag(Ldap.java:365) at lucee.runtime.tag.Ldap.doStartTag(Ldap.java:353)

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/net/ldap/LDAPClient.java#L135

Environment

OS: Windows Server 2016
Java: AdoptOpenJDK 14.0.2 64bit or also 15.
Tomcat: 9.0.37
Lucee: 5.3.6.61

Activity

Show:

Pothys - MitrahSoft 23 September 2020 at 14:53

I've checked this ticket with lucee latest version 5.3.8.75 -SNAPSHOT also. And confirmed the issue happened on the java version 14.0.1+7, throws an exact issue mentioned in the ticket.

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 22 September 2020 at 15:15
Updated 13 October 2024 at 17:01

Flag notifications