javax.naming.NamingException

WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader jdk.internal.loader.ClassLoaders$AppClassLoader@4b6995df at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:405) at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:396) at jdk.internal.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:98) at java.lang.Class.newInstance(java.base@9-ea/Class.java:564)


Solutions on the web910

Solution icon of github
WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader jdk.internal.loader.ClassLoaders$AppClassLoader@4b6995df at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea

Solution icon of stackoverflow
WFLYNAM0027: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.test.ear.test.war:main" from Service Module Loader [Root exception is

Solution icon of stackoverflow
WFLYNAM0027: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.proj-EAR.ear.proj-WEB.war:main" from Service Module Loader [Root exception is

Solution icon of jboss
via JBoss Issue Tracker by Vitalii Chepeliuk, 1 year ago
JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.cdfec128-cadf-4cfb-9ffe-f5445e7f3980.war:main" from Service Module Loader [Root exception is javax.naming.CommunicationException: Request: 1 cancelled]

Solution icon of bugzilla
via https://bugzilla.redhat.com/bugzilla/ by Hisanobu Okuda, 1 year ago
JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "org.jboss.as.messaging:main" from local module loader @5703a7f (finder: local module finder @b106aa3 (roots: jboss

Solution icon of stackoverflow
via Stack Overflow by sam
, 11 months ago
JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader ModuleClassLoader for Module "deployment.AccountDataImporterWeb.war:main" from Service Module Loader [Root exception is javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 ]]

Solution icon of web
JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.quote.war:main" from Service Module Loader

Solution icon of stackoverflow
via Stack Overflow by chad martin
, 1 year ago
JBAS011843: Failed instantiate InitialContextFactory com.sun.enterprise.naming.SerialInitContextFactory from classloader ModuleClassLoader for Module "org.glassfish:main" from local module loader @6b573f80 (finder: local module finder @2d0a238e

Solution icon of stackoverflow
JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.quote.war:main" from Service Module Loader

Solution icon of web
JBAS011843: Failed instantiate InitialContextFactory com.sun.enterprise.naming.SerialInitContextFactory from classloader ModuleClassLoader for Module "deployment.RandomNumberTesterGlassfish.war:main" from Service Module Loader

Stack trace

  • javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader jdk.internal.loader.ClassLoaders$AppClassLoader@4b6995df at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:405) at jdk.internal.reflect.Reflection.throwIllegalAccessException(java.base@9-ea/Reflection.java:396) at jdk.internal.reflect.Reflection.ensureMemberAccess(java.base@9-ea/Reflection.java:98) at java.lang.Class.newInstance(java.base@9-ea/Class.java:564) at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:114) at org.jboss.as.naming.InitialContext.init(InitialContext.java:99)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.