I have configured wildfly-14 in domain mode and configured one profile "full-ha-socket" in domain.xml.  Now I have deployed ear in wildfly. The application having functionality of marshalling/unmarshalling of content.  Also I have provided jaxb dependency in maven as scope provided. 

So the issue is when I process the file the it throws classcastexception.  Please refer below stackstrace.