Off late, there was an application which failed with following error at run time when we ran the application in Wildfly.
This class is available inside java run time library. In order to include these sun internal classes into the application path I added below XML block into jboss-deployment-structure.xml,
<system export="true"> <paths> <path name="com/sun/xml/internal/stream/util/"/> </paths> </system>
To my surprise, the issue did not fixed however when I just removed trialing forward slash in path and kept “com/sun/xml/internal/stream/util” instead, it just worked for me. I’m not sure how it made all the difference to the class loader…That could be a another blog 🙂