JBoss 7 use jboss-modules technology for modular class-loading, similar to OSGi.
It will use rt.jar and a bunch of libraries in its own lib directory to start the application server itself.
But when it will load your web application, it will create a custom classloader which restricts what classes it will see, based on the module dependencies it declares.
To declare module dependencies, you need to include a jboss-deployment-structure.xml in the META-INF directory of your EAR (or WEB-INF for a WAR). See https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7. To declare a dependency on classes in the rt.jar, you need a <system> dependency:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<system export="true">
<paths>
<path name="sun/net/util"/>
</paths>
</system>
</dependencies>
</deployment>
</jboss-deployment-structure>
You could also try to extract the IPAddressUtil class and package it as a separate module. You can get the sources from the openjdk, e.g. http://www.docjar.com/html/api/sun/net/util/IPAddressUtil.java.html