<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
    Help Needed in Migrating WebServices Application Migration from Tomcat Server to Jboss-5.1.0 server
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/vnishwanth">nishwanth vuppala</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/535975#535975">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have a war file(webservices application) which has succesfully deployed in tomcat and when i m migrating the application to Jboss5.1.0 getting many issues .</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Environment :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Jax-ws SI </strong><strong>2.0 </strong><span style="font-size: 10pt; color: #3f5fbf;"><span style="font-size: 10pt; color: #7f7f9f;">-</span><span style="font-size: 10pt; color: #3f5fbf;">b26</span><span style="font-size: 10pt; color: #7f7f9f;">-</span><span style="font-size: 10pt; color: #3f5fbf;">ea3</span></span></p><p><strong>Jaxb</strong></p><p><strong>Saaj</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Jars files inside my application lib folder :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>xercesImpl.jar</strong></p><p><strong>saaj-pai,saaj-impl.jar</strong></p><p><strong>jaxb-api,jaxb-impl,jaxp-api</strong></p><p><strong>jaxws-rt,jaxrpc,jaxws-api,sax,wsdl4j-1.5.1,xalan,jsr173_api,jsr181_api,jsr250.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When i deployed the application please find the errors below and steps i took to resolve them.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener<br/>java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> &#160;</p><p><strong>Caused by: java.lang.RuntimeException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: org.jboss.ws.core.soap.SOAPFactoryImpl<br/> at com.sun.xml.xwss.SystemHandlerDelegateImpl.&lt;clinit&gt;(SystemHandlerDelegateImpl.java:661)<br/> ... 77 more<br/>Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: org.jboss.ws.core.soap.SOAPFactoryImpl<br/> at javax.xml.soap.SOAPFactory.newInstance(Unknown Source)<br/> at com.sun.xml.xwss.SystemHandlerDelegateImpl.&lt;clinit&gt;(SystemHandlerDelegateImpl.java:657)<br/> ... 77 more</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> &#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> &#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>kept jboss-saaj.jar in lib and removed saaj-api.jar from appln</strong></p><p><br/><strong>ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SDS]] (main) Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener<br/>java.lang.ExceptionInInitializerError</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>removed jaxp-api.jar from application</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SDS]] (main) Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener<br/>java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class</strong></p><p><strong>at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.&lt;clinit&gt;(RuntimeBuiltinLeafInfoImpl.java:779)<br/> at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.&lt;init&gt;(RuntimeTypeInfoSetImpl.java:25)<br/> at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:78)<br/> at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:41)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>removed jaxrpc,jaxb-impl,xbean,xmlpublic,jsr173 jars</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>java.lang.LinkageError: loader constraints violated when linking org/xml/sax/XMLFilter class</strong></p><p><strong>removed sax.jar from application</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>java.lang.LinkageError: loader constraints violated when linking javax/xml/bind/SchemaOutputResolver class<br/>&#160; <br/>removed jaxb-api.jar from application</strong></p><p><br/><strong>failed to parse runtime descriptor: java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.AccessType not present<br/> at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener</strong></p><p><strong>placed jaxb-api.jar in libs folder</strong></p><p><strong>java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract javax.xml.bind.annotation.XmlAccessType javax.xml.bind.annotation.XmlAccessorType.value() (Found data of type Ljavax/xml/bind/annotation/AccessType;.FIELD)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>I not able to proceed further .</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>please Help..</strong></p></div>

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


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

</div>

</body>
</html>