<!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">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;">
    jboss6 final and jbossws 3.4.0
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/abr">Antoine Brun</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/578425#578425">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm currently trying to migrate our application from jboss5 to jboss6 and I'm running into some issues.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My first try was with jboss6 CR1:</p><p>We have some web services (EJB3 endpoints) and they all have @HandlerChain declaration (we use this to do the XML validation since the built-in SOAP validation didn't work on Jboss5) and it all worked fine with jboss5 and jbossws native 3.3.1 GA.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Now with jboss6 CR1, since it is shipped with jbossws-CXF 3.4.1 my @HandlerChain declaration does not seem to be valid any more (btw, I was not able to find any clear document on own to declare a handler chain with CXF).</p><p>So I've decided to use <strong>jbossws-native-3.4.0</strong> (the latest version available) and I worked fine: I was able to have my web services running just like with jboss5</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Today, I've downloded <strong>jboss6 Final with CXF 3.4.1</strong></p><p>18:32:43,489 INFO&#160; [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and just like for jboss6 CR1, I tried to deploy jbossws native.</p><p>But this time I get:</p><p><span style="font-family: courier new,courier;">18:34:46,515 INFO&#160; [AbstractServerConfig] JBoss Web Services - Native Server 3.4.0.GA<br/>18:34:46,523 ERROR [AbstractKernelController] Error installing to PreInstall: name=WSDescriptorDeployer state=Real: java.lang.NoClassDefFoundError: org/jboss/wsf/spi/metadata/DescriptorParser<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0_23]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [:1.6.0_23]<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Class.getDeclaredConstructors(Class.java:1836) [:1.6.0_23]</span></p><p><span style="font-family: courier new,courier;">.....</span></p><p><span style="font-family: courier new,courier;">Caused by:<strong> java.lang.ClassNotFoundException: org.jboss.wsf.spi.metadata.DescriptorParser</strong><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_23]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, jboss6 CR1 comes with&#160; Stack CXF Server 3.4.0.CR3 and I can install Native Server 3.4.0.GA</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But, jboss6 Final comes with CXF 3.4.1 and I cannot install Native Server 3.4.0.GA...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can someone please explain me:</p><p>- <strong>how to install jbossws native in jboss6?</strong></p><p>-<strong> where do I get jbossws native 3.4.1 (is it available? 3.4.0 native or CXF are the latest available at <a class="jive-link-external-small" href="http://www.jboss.org/jbossws/downloads">http://www.jboss.org/jbossws/downloads</a> )?</strong></p><p>-<strong> how do I declare HandlerChain with CXF?</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>my EJB have @HandlerChain(file = "/META-INF/soapHandler/handler-chain.xml")</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and the handler-chain.xml is as follow:</p><p><span style="font-family: courier new,courier;">&#160; &lt;?xml version="1.0" encoding="UTF-8"?&gt;</span></p><p><span style="font-family: courier new,courier;">&#160; &lt;handler-config&gt;<br/>&#160;&#160;&#160; &lt;handler-chain&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;handler-chain-name&gt;SoapHandler&lt;/handler-chain-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;handler&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;handler-name&gt;SoapMessageValidationHandler&lt;/handler-name&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;handler-class&gt;com.ubiqube.api.ws.soapHandler.MessageValidationSoapHandler&lt;/handler-class&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/handler&gt;<br/>&#160;&#160;&#160; &lt;/handler-chain&gt;<br/>&#160; &lt;/handler-config&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>thanks,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Antoine</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/578425#578425">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>