Off late, there was an application which failed with following error at run time when we ran the application in Wildfly.


java.lang.NoClassDefFoundError: com/sun/xml/internal/stream/util/ThreadLocalBufferAllocator

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 🙂

1 thought on “Wildfly NoClassDefFoundError on com.sun.xml.internal.stream.util.ThreadLocalBufferAllocator”

  1. Or celui-ci avait su immortellement arreter le mouvement des heures a cet instant lumineux ou la dame avait eu chaud et avait cesse de danser, ou l’arbre etait cerne d’un pourtour
    d’ombre, ou les voiles semblaient glisser sur un vernis d’or.
    chanel bags
    Depuis mon retour de la Campagne, je logeay dans la nouvelle prison dont j’avois refuse d’estre l’ecrivain, les Gardes pour se vanger de mon refus me mirent au travail de
    la Marine, qui est un des plus penibles des Captifs, apres celuy de la
    moisson dans les deserts.

Leave a Reply

Your email address will not be published.

WP2Social Auto Publish Powered By : XYZScripts.com