<!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 4.2.3 + JRE 1.7 error - JAX-WS implementation
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/pavanbgu">Pavan BG</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/737622#737622">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><span>While running JBoss4.2.3 in JRE1.7 environment, web services deployment failed. After debugging further, I figured out this is a known bug in JRE1.7 (</span><a class="jive-link-external-small" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6974244" target="_blank">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6974244</a><span>).</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The Bug description says,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>"In recent JDK7 builds, Throwable has a new method:</em></p><p><em>public Throwable[] getSuppressedExceptions()</em></p><p><em>JAX-WS 2.0 spec 3.7 Service Specific Exception says</em></p><p><em>For each getter in the exception and its superclasses, a property of the same type and name is added</em></p><p><em>to the bean. The getCause, getLocalizedMessage and getStackTrace getters from java-</em></p><p><em>.lang.Throwable and the getClass getter from java.lang.Object are excluded from the list</em></p><p><em>of getters to be mapped."</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>This creates a JAXB bean for an exception with a "suppressedExceptions" property. This causes JAXB to fail.<strong> <span style="text-decoration: underline;">JAX-WS spec needs to be updated to add this method to the above list of methods</span>.</strong></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I looked at JAX-WS 2.2 spec which has this section updated and it says </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>"For each getter in the exception and its superclasses, a property of the same type and name is added to</em></p><p><em>the bean. All the getter methods except getMessage from java.lang.Throwable type hierarchy</em></p><p><em>are excluded from the list of getters to be mapped."</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>Looks like in JAX-WS 2.2, the above condition is removed. JBoss 6.0 release notes says it has endorsed JAX-WS2.2 (</span><a class="jive-link-external-small" href="https://community.jboss.org/docs/DOC-14791" target="_blank">https://community.jboss.org/wiki/AS600M2ReleaseNotes</a><span>). After testing the same application in JBoss 6.0, the issue was not observed.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Now the question I have is, is it possible to continue to use JBoss 4.2.3 but to replace the default JAX-WS implementation from 2.0 to 2.2 compliant. Can we control this at each component level. Is there a way to override the default implementation.</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Regards,</p><p>Pavan</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/737622#737622">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://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>