Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10321

Configuring dns.DNS_PING protocol fails with ClassNotFoundException: com.sun.jndi.dns.DnsContextFactory

    Details

      Description

      22:36:47,840 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 70) MSC000001: Failed to start service org.wildfly.clustering.jgroups.channel.ee: org.jboss.msc.service.StartException in service org.wildfly.clustering.jgroups.channel.ee: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.dns.DnsContextFactory from classloader ModuleClassLoader for Module "org.wildfly.clustering.service" version 13.0.0.Alpha1-SNAPSHOT from local module loader @2812cbfa (finder: local module finder @2acf57e3 (roots: /Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules,/Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base)) [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.dns.DnsContextFactory from [Module "org.wildfly.clustering.service" version 13.0.0.Alpha1-SNAPSHOT from local module loader @2812cbfa (finder: local module finder @2acf57e3 (roots: /Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules,/Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base))]]
      	at org.jboss.as.clustering.jgroups.subsystem.ChannelBuilder.start(ChannelBuilder.java:100)
      	at org.wildfly.clustering.service.AsynchronousServiceBuilder.lambda$start$0(AsynchronousServiceBuilder.java:99)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
      	at java.lang.Thread.run(Thread.java:748)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:485)
      Caused by: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.dns.DnsContextFactory from classloader ModuleClassLoader for Module "org.wildfly.clustering.service" version 13.0.0.Alpha1-SNAPSHOT from local module loader @2812cbfa (finder: local module finder @2acf57e3 (roots: /Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules,/Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base)) [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.dns.DnsContextFactory from [Module "org.wildfly.clustering.service" version 13.0.0.Alpha1-SNAPSHOT from local module loader @2812cbfa (finder: local module finder @2acf57e3 (roots: /Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules,/Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base))]]
      	at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:120)
      	at org.jboss.as.naming.InitialContext.init(InitialContext.java:101)
      	at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
      	at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:91)
      	at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)
      	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
      	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      	at javax.naming.InitialContext.init(InitialContext.java:244)
      	at javax.naming.InitialContext.<init>(InitialContext.java:216)
      	at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:101)
      	at org.jgroups.protocols.dns.DefaultDNSResolver.<init>(DefaultDNSResolver.java:40)
      	at org.jgroups.protocols.dns.DNS_PING.init(DNS_PING.java:54)
      	at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:840)
      	at org.jgroups.stack.ProtocolStack.init(ProtocolStack.java:830)
      	at org.jgroups.JChannel.<init>(JChannel.java:200)
      	at org.jboss.as.clustering.jgroups.JChannelFactory.createChannel(JChannelFactory.java:108)
      	at org.jboss.as.clustering.jgroups.subsystem.ChannelBuilder.start(ChannelBuilder.java:98)
      	... 7 more
      Caused by: java.lang.ClassNotFoundException: com.sun.jndi.dns.DnsContextFactory from [Module "org.wildfly.clustering.service" version 13.0.0.Alpha1-SNAPSHOT from local module loader @2812cbfa (finder: local module finder @2acf57e3 (roots: /Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules,/Users/rhusar/git/wildfly/build/target/wildfly-13.0.0.Alpha1-SNAPSHOT/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:115)
      	... 23 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhusar Radoslav Husar
                Reporter:
                rhusar Radoslav Husar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: