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

Additional packages in the sun.jdk module

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.0.1.Final
    • 7.0.0.Final
    • None
    • None

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: