<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Jboss 6 - Linkage Error
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/powerpuff">powerpuff</a> in <i>Beginner's Corner</i> - <a href="https://community.jboss.org/message/795289#795289">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I am trying to migrate my application from Jboss 4 to Jboss 6.</p><p>Its a web service application, which is using Axis2 implementation.</p><p>Below jars are reffered by Axis2</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;fileset id="axis.runtime.fileset" dir="${common.lib.dir}/axis2/1_4_1"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="axis2-kernel-1.4.1.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="axiom-api-1.2.7.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="axiom-impl-1.2.7.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="neethi-2.0.4.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="woden-api-1.0M8.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="woden-impl-dom-1.0M8.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="wsdl4j-1.6.2.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="xmlbeans-2.3.0.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="axis2-adb-1.4.1.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="XmlSchema-1.4.2.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;include name="axis2-spring-1.4.1.jar"/&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!--include name="stax-1.2.0.jar"/--&gt;</p><p>&#160;&#160;&#160; &lt;/fileset&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If i include stax-api jar in project build, it is failing during deployment. If i remove stax api jar from application build, i am able to deploy the application successfully but when i try to access the web services i get below linage error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>[org.apache.axis2.transport.http.AxisServlet]&#160; loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.om.impl.llom.OMStAXWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/axiom/om/impl/llom/OMStAXWrapper, 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: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axiom.om.impl.llom.OMStAXWrapper.getName()Ljavax/xml/namespace/QName;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/axiom/om/impl/llom/OMStAXWrapper, 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</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReader(OMElementImpl.java:752) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axiom.om.impl.llom.OMElementImpl.getXMLStreamReaderWithoutCaching(OMElementImpl.java:726) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.fdc.valuelink.endpoint.ValueLinkTransactionMessageReceiverInOut.fromOM(Unknown Source) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.fdc.valuelink.endpoint.ValueLinkTransactionMessageReceiverInOut.invokeBusinessLogic(Unknown Source) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) [:]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:662) [:1.6.0_31]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have read in many posts that including stax api in application lib causes linkage error, here i dont have stax api jar in my application lib folder still its giving linkage error. i am using Java 6 on my server.</p><p>Can anyone please help in resolving this error?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/795289#795289">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>