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