<!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;"> </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  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;"> </p><p>Many thanks</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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/>     at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:925)<br/>     at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaDat</p><p>.</p><p>. etc</p><p>.</p><p><br/>     at org.jboss.Main.boot(Main.java:200)<br/>     at org.jboss.Main$1.run(Main.java:508)<br/>     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/>     this problem is related to the following location:<br/>         at javax.xml.namespace.QName<br/>         at protected java.util.List org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType.unknownFilter<br/>         at org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType<br/>         at public org.oasis_open.docs.wsn.b_2.InvalidFilterFaultType org.oasis_open.docs.wsn.b_2.ObjectFactory.createInvalidFilterFaultType()<br/>         at org.oasis_open.docs.wsn.b_2.ObjectFactory<br/>         at protected java.util.List org.oasis_open.docs.wsn.b_2.TopicExpressionType.content<br/>         at org.oasis_open.docs.wsn.b_2.TopicExpressionType<br/>         at protected org.oasis_open.docs.wsn.b_2.TopicExpressionType org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType.topic<br/>         at org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType<br/>         at protected java.util.List org.oasis_open.docs.wsn.b_2.Notify.notificationMessage<br/>         at org.oasis_open.docs.wsn.b_2.Notify<br/>         at private org.oasis_open.docs.wsn.b_2.Notify com.wwc.cps.webservices.jaxws.Notify.arg0<br/>         at com.wwc.cps.webservices.jaxws.Notify<br/> @XmlAttribute/@XmlValue need to reference a Java type that maps to text in XML.<br/>     this problem is related to the following location:<br/>         at protected java.util.List org.oasis_open.docs.wsn.t_1.TopicType.messageTypes<br/>         at org.oasis_open.docs.wsn.t_1.TopicType<br/>         at org.oasis_open.docs.wsn.t_1.TopicNamespaceType$Topic<br/>         at public org.oasis_open.docs.wsn.t_1.TopicNamespaceType$Topic org.oasis_open.docs.wsn.t_1.ObjectFactory.createTopicNamespaceTypeTopic()<br/>         at org.oasis_open.docs.wsn.t_1.ObjectFactory<br/>         at protected java.util.List org.oasis_open.docs.wsn.t_1.TopicSetType.any<br/>         at org.oasis_open.docs.wsn.t_1.TopicSetType<br/>         at protected org.oasis_open.docs.wsn.t_1.TopicSetType org.oasis_open.docs.wsn.b_2.NotificationProducerRP.topicSet<br/>         at org.oasis_open.docs.wsn.b_2.NotificationProducerRP<br/>         at public org.oasis_open.docs.wsn.b_2.NotificationProducerRP org.oasis_open.docs.wsn.b_2.ObjectFactory.createNotificationProducerRP()<br/>         at org.oasis_open.docs.wsn.b_2.ObjectFactory<br/>         at protected java.util.List org.oasis_open.docs.wsn.b_2.TopicExpressionType.content<br/>         at org.oasis_open.docs.wsn.b_2.TopicExpressionType<br/>         at protected org.oasis_open.docs.wsn.b_2.TopicExpressionType org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType.topic<br/>         at org.oasis_open.docs.wsn.b_2.NotificationMessageHolderType<br/>         at protected java.util.List org.oasis_open.docs.wsn.b_2.Notify.notificationMessage<br/>         at org.oasis_open.docs.wsn.b_2.Notify<br/>         at private org.oasis_open.docs.wsn.b_2.Notify com.wwc.cps.webservices.jaxws.Notify.arg0<br/>         at com.wwc.cps.webservices.jaxws.Notify<br/> <br/>     at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)<br/>     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)<br/>     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)<br/>     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)<br/>     at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)<br/>     at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116)<br/>     at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:921)<br/>     ... 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>