title: Jboss LinkageError: loader constraint violation: when resolving overridden method
body: <p>I have two war files: A and B with web services using CXF</p>
  
  <p>A uses web service in B.</p>
  
  <p>B uses web service in A.</p>
  
  <p>Everything is working fine in Tomcat. But when i deployed in Jboss, i am  facing linkage error. </p>
  
  <blockquote>
    <p>Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.cxf.jaxws.ServiceImpl.createDispatch(Ljavax/xml/ws/EndpointReference;Ljavax/xml/bind/JAXBContext;Ljavax/xml/ws/Service$Mode;[Ljavax/xml/ws/WebServiceFeature;)Ljavax/xml/ws/Dispatch;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/cxf/jaxws/ServiceImpl, and its superclass loader (instance of ), have different Class objects for the type javax/xml/bind/JAXBContext used in the signature</p>
  </blockquote>
  
  <p>I have removed jaxb-api-2.2.3.jar and jaxb-impl-2.2.4-1.jar from the war and tested. Still i am facing the same issue.</p>
  
  <p>What is the reason? Thanks in advance.</p>