Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-60

Allow reintroduction of missing Sun JDK classes

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      I'm unable to use the dnsjava library in Wildfly Swarm projects due to its internal use of sun.net.dns.ResolverConfguration
      <pre>
      String resConfName = "sun.net.dns.ResolverConfiguration";
      Class resConfClass = Class.forName(resConfName);
      </pre>
      <pre>
      java.lang.ClassNotFoundException: sun.net.dns.ResolverConfiguration from [Module "deployment.5d957258-9f2c-408f-9934-ca814f328afb.war:main" from Service Module Loader]
      </pre>

      I think this is because JBoss AS7 excludes certain JDK classes by default. There's a decent amount of posts out there explaining how to add them back in by modifying some configuration files for JBoss AS7, but I'm unclear on how to get this done with Wildfly Swarm.

      If these Sun JDK classes are being excluded for a reason worth the inconvenience of not having things just work on this platform, then users should be exposed some sort of configuration parameter to manually add them back in.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amannm Amann Malik (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: