Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1500

Additional packages in the sun.jdk module

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.Final
    • 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:

      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"/>

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              shelleyb_jira Shelley Baker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: