<!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;">
    wsconsume jaxb binding file example?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/finbarr">max tomlinson</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/557331#557331">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 all-</p><p>I am trying to run wsconsume on some fairly complex wsdl to generate JAX-WS (native) artifacts to build a web service.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I get errors when I try to deploy my web service under Jboss 4.2. The errors are IllegalAnnotationsExceptions referenceing objects used by the WSN Notification&#160; Framework.</p><p>My question is (not knowing much about JAXB) how can I created JAXB bidnign fiels to pass to the wsconsume tasks. I've attached the WSDL</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Many thanks</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Max</p><p>08:26:53,400 ERROR [MainDeployer] Could not start deployment: file:/opt/jboss/jboss-4.2.2.GA/server/default/deploy/cps.ear/cps.jar/<br/> java.lang.IllegalStateException: Cannot build JAXB context<br/>&#160;&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:925)<br/>&#160;&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaDat</p><p>.</p><p>. etc</p><p>.</p><p><br/>&#160;&#160;&#160;&#160; at org.jboss.Main.boot(Main.java:200)<br/>&#160;&#160;&#160;&#160; at org.jboss.Main$1.run(Main.java:508)<br/>&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:595)<br/> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions<br/> javax.xml.namespace.QName does not have a no-arg default constructor.<br/>&#160;&#160;&#160;&#160; this problem is related to the following location:<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.xml.namespace.QName<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType.unknownFilter<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at public org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType org.oasis_open.docs.wsn.b_2.ObjectFactory.createInvalidFilterFaultType()<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.ObjectFactory<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.b_2.TopicExpressionType.content<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.TopicExpressionType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected org.oasis_open.docs.wsn.b_2.TopicExpressionType org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType.topic<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.b_2.Notify.notificationMessage<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.Notify<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at private org.oasis_open.docs.wsn.b_2.Notify com.wwc.cps.webservices.jaxws.Notify.arg0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.wwc.cps.webservices.jaxws.Notify<br/> @XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.<br/>&#160;&#160;&#160;&#160; this problem is related to the following location:<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.t_1.TopicType.messageTypes<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.t_1.TopicType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.t_1.TopicNamespaceType$Topic<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at public org.oasis_open.docs.wsn.t_1.TopicNamespaceType$Topic org.oasis_open.docs.wsn.t_1.ObjectFactory.createTopicNamespaceTypeTopic()<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.t_1.ObjectFactory<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.t_1.TopicSetType.any<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.t_1.TopicSetType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected org.oasis_open.docs.wsn.t_1.TopicSetType org.oasis_open.docs.wsn.b_2.NotificationProducerRP.topicSet<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.NotificationProducerRP<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at public org.oasis_open.docs.wsn.b_2.NotificationProducerRP org.oasis_open.docs.wsn.b_2.ObjectFactory.createNotificationProducerRP()<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.ObjectFactory<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.b_2.TopicExpressionType.content<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.TopicExpressionType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected org.oasis_open.docs.wsn.b_2.TopicExpressionType org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType.topic<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at protected java.util.List org.oasis_open.docs.wsn.b_2.Notify.notificationMessage<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.oasis_open.docs.wsn.b_2.Notify<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at private org.oasis_open.docs.wsn.b_2.Notify com.wwc.cps.webservices.jaxws.Notify.arg0<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.wwc.cps.webservices.jaxws.Notify<br/> <br/>&#160;&#160;&#160;&#160; at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)<br/>&#160;&#160;&#160;&#160; at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)<br/>&#160;&#160;&#160;&#160; at com.sun.xml.bind.v2.runtime.JAXBContextImpl.&lt;init&gt;(JAXBContextImpl.java:286)<br/>&#160;&#160;&#160;&#160; at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)<br/>&#160;&#160;&#160;&#160; at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)<br/>&#160;&#160;&#160;&#160; at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116)<br/>&#160;&#160;&#160;&#160; at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:921)<br/>&#160;&#160;&#160;&#160; ... 82 more</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/557331#557331">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>