Hi WildFly team,
We are running 26.1.2.Final WildFly with Open JDK17, and hit an "IllegalAccessException",
class org.jboss.as.naming.InitialContext cannot access class com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module java.naming does not export com.sun.jndi.ldap
The above issue seemed resolved by add this "--add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED" JVM argument.
We use WildFly script for launching, and according to the WildFly document - Running WildFly with SE17, we don't seem need to explicitly add the "JPMS" setting (com.sun.jndi.ldap is on the list), but when testing the LDAP feature, we did hit the issue without explicitly adding it.
Is this a defect or?
Also, during investigation, we noticed that, in terms of JVM argument setting, there are some difference between running on Window and Linux. The main diff is that in Windows the "$DEFAULT_MODULAR_JVM_OPTIONS" is always loaded/set, whereas in Linux it doesn't.
Is this expected? Or what is the cause of it?
Any help is appreciated and thanks in advance!
Regards,
Ming