-
Feature Request
-
Resolution: Done
-
Major
-
7.0.0.Final
-
None
-
None
There are several packages that in the Sun JDK that should be made available to applications in JBoss, including:
- com.sun.jndi.dns
- com.sun.jndi.ldap
- com.sun.security.auth
One potential solution that would prevent applications from explicitly creating these modules or declaring them as dependencies would be to include them in the "sun.jdk" module (AS7-962).
The inclusion of the DNS JNDI package was originally discussed in the following thread: http://community.jboss.org/message/619522#619522. The LDAP JNDI package is already included as a separate module (AS7-956), but it would be preferable to include it in the "sun.jdk" module so that applications do not need to declare this module dependency. The security package prevents performing privileged actions, so it would also be beneficial to include in the sun.jdk module.
Attached is a test case that can be used to demonstrate the requested packages currently missing from the classloader. The exceptions will be thrown by invoking the following:
- http://localhost:8080/jboss-test/dns
- http://localhost:8080/jboss-test/ldap
- http://localhost:8080/jboss-test/security
After adding the following paths to the sun.jdk module descriptor ($JBOSS_HOME/modules/sun/jdk/main/module.xml), the classes are found and the application behaves as expected:
<path name="com/sun/jndi/dns"/>
<path name="com/sun/jndi/ldap"/>
<path name="com/sun/security/auth"/>