I found a workaround for this issue:
- Create a com.sun.jndi.dns module, by copying $JBOSS_HOME/modules/com/sun/jndi/ldap to $JBOSS_HOME/modules/com/sun/jndi/dns and modify occurrences of "ldap" to "dns"
- Add the following entry to the web module's MANIFEST.MF: Dependencies: com.sun.jndi.dns
Although this now allows the DnsContextFactory to instantiate properly, this doesn't seem to be a feasible solution, requiring modification of all JBoss servers as well as any applications that utilize the DnsContextFactory. Is there a bug or enhancement that could be added to JBoss to prevent these manual modifications? Or is there already an existing approach that can resolve this issue?