title: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method
body: <p>I have developed a web service with authentication in java following the link <a href="http://www.mkyong.com/webservices/jax-ws/application-authentication-with-jax-ws/" rel="nofollow">Web Service Atuthentication</a>
  The Same is runing fine if I am using JDK 1.6/JBoss 4.2 but when I deploy it in Jboss 5.1.0 GA I am getting deployment error. I google and found there is some jar conflict between JDK1.6,Jboss and my application. And replaced the JBoss/lib/endorsed jaxws-ri.jar with the latest jaxws-ri-2.2.8.jar. But I am not able to identify which jar is creating conflict now.</p>
  
  <p>Below is my code of web.xml, sun-jaxws.xml and exception.</p>
  
  <pre><code>web.xml
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
  &lt;display-name&gt;biservices&lt;/display-name&gt;
  &lt;listener&gt;
  &lt;listener-class&gt;
          com.sun.xml.ws.transport.http.servlet.WSServletContextListener
      &lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;servlet&gt;
  &lt;servlet-name&gt;BiServices&lt;/servlet-name&gt;
   &lt;servlet-class&gt;com.sun.xml.ws.transport.http.servlet.WSServlet&lt;/servlet-class&gt;
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
  &lt;servlet-name&gt;BiServices&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/biservices&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;session-config&gt;
  &lt;session-timeout&gt;120&lt;/session-timeout&gt;
  &lt;/session-config&gt;
  &lt;welcome-file-list&gt;
  &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  
  
  sun-jaxws.xml
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0"&gt;
  &lt;endpoint
     name="IBiUpdate"
     implementation="com.sbilife.ws.BiUpdate"
     url-pattern="/biservices"/&gt;
  &lt;/endpoints&gt;
  
  exception
  java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "com.sun.xml.ws.util.xml.XMLStreamReaderFilter.getAttributeName(I)Ljavax/xml/namespace/QName;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, com/sun/xml/ws/util/xml/XMLStreamReaderFilter, and the class loader (instance of &lt;bootloader&gt;) for interface javax/xml/stream/XMLStreamReader have different Class objects for the type javax/xml/namespace/QName used in the signature
  </code></pre>
  
  <p>Thanks
  Pise</p>