I have reported the issue in JIRA and have included a test case
http://jira.codehaus.org/browse/XFIRE-859
http://jira.codehaus.org/browse/XFIRE-859
Dave Kallstrom wrote:
>
> Looks like wsgen does in fact default to jaxb bindings. I removed
> bindings="jaxb" from my ant task and it worked fine.I'm afraid I can't
> help
> anymore than that.
>
> On 1/26/07, jmdev <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thank you for the quick response.
>>
>> I am pretty sure I am using the JAXB bindings as I did not specify the
>> binding attribute. I used the pom from the geoip client in the xfire
>> examples as a starting point and just changed the path to the wsdl and
>> the
>> package:
>>
>> <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask"
>> classpathref="maven.compile.classpath"/>
>>
>> <wsgen outputDirectory="${basedir}/target/generated-source"
>> wsdl="${basedir}/src/wsdl/mywsdl.wsdl" package="com.mypackage"
>> overwrite="true"/>
>>
>> If I am using the JAXB bindings should this work simply by pointing it at
>> the wsdl or is there something I need to do prior to executing the ant
>> task?
>>
>>
>>
>> Dave Kallstrom wrote:
>> >
>> > Are you using JAXB bindings or XMLBeans? If you are using XMLBeans then
>> > you
>> > must create your beans first.
>> >
>> > http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL
>> >
>> > On 1/26/07, jmdev <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I am hoping someone can help me with this. I am attempting to create
>> the
>> >> client stubs for the WS-Notification spec provided by servicemix
>> >>
>> >>
>> >>
>> servicemix-3.1\deployables\serviceengines\servicemix-wsn2005\src\main\resources\org\apache\servicemix\wsn\notificationBroker.wsdl
>> >>
>> >> (Note: To generate the notificationBroker.wsdl I deployed servicemix's
>> >> wsn
>> >> example)
>> >>
>> >> Running the wsgen task I receive the exception provided below (similar
>> to
>> >>
>> >>
>> http://www.nabble.com/problem-with-client-gen-from-wsdl-for-BookService-tf929892.html#a2431446
>> >> this post ). I have used the command line version of wsgen and the
>> ant
>> >> task, versions 1.2.4 and the latest from SVN. Any idea as to what
>> might
>> >> be
>> >> causing this problem?
>> >>
>> >> java.lang.NullPointerException
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLSer
>> >> viceBuilder.java:532)
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLService
>> >> Builder.java:387)
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLService
>> >> Builder.java:192)
>> >> at
>> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:
>> >> 130)
>> >> at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
>> >> Exception in thread "main" java.lang.NullPointerException
>> >> at org.codehaus.xfire.gen.WsGen.main(WsGen.java:136)
>> >> Caused by: java.lang.NullPointerException
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLSer
>> >> viceBuilder.java:532)
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLService
>> >> Builder.java:387)
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLService
>> >> Builder.java:192)
>> >> at
>> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:
>> >> 130)
>> >> at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
>> >> --- Nested Exception ---
>> >> java.lang.NullPointerException
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLSer
>> >> viceBuilder.java:532)
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLService
>> >> Builder.java:387)
>> >> at
>> >> org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLService
>> >> Builder.java:192)
>> >> at
>> >> org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:
>> >> 130)
>> >> at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/wsgen-NullPointerException-tf3124049.html#a8655291
>> >> Sent from the XFire - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe from this list please visit:
>> >>
>> >> http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >
>> >
>> > --
>> > Dave Kallstrom
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/wsgen-NullPointerException-tf3124049.html#a8656448
>> Sent from the XFire - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
> --
> Dave Kallstrom
>
>
--
View this message in context:
http://www.nabble.com/wsgen-NullPointerException-tf3124049.html#a8665738
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email