[jboss-user] [JBossWS] - ant task org.jboss.wsf.spi.tools.ant.WSConsumeTask problem

nobleman1997 do-not-reply at jboss.com
Tue Jul 29 18:11:02 EDT 2008


Hi I am trying to create source and output of web services based on wsdl file.
I am using following ant task in my build.

 i am using jbossws-native-3.0.2 in my class path
  
           wsconsume 
             fork="false"
              verbose="true"
               destdir="output"
                sourcedestdir="gen-src"
                keep="true"   
                
               wsdl="Test.wsdl">
             wsconsume 
    
         

when i run task, I am getting following error.

[wsconsume] parsing WSDL...


[wsconsume] Failed to invoke WsImport
[wsconsume] java.lang.NullPointerException
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.Messages.format(Messages.java:49)
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.ClassSelector.addSchemaFragmentJavadoc(ClassSelector.java:410)
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.ClassSelector.access$300(ClassSelector.java:88)
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.ClassSelector$Binding.build(ClassSelector.java:182)
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.ClassSelector.executeTasks(ClassSelector.java:355)
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.BGMBuilder._build(BGMBuilder.java:176)
[wsconsume]     at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:114)
[wsconsume]     at com.sun.tools.xjc.ModelLoader.annotateXMLSchema(ModelLoader.java:415)
[wsconsume]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:241)
[wsconsume]     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
[wsconsume]     at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134)
[wsconsume]     at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2244)
[wsconsume]     at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187)
[wsconsume]     at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133)
[wsconsume]     at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:182)
[wsconsume]     at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:231)
[wsconsume]     at org.jboss.wsf.spi.tools.WSContractConsumer.consume(WSContractConsumer.java:203)
[wsconsume]     at org.jboss.wsf.spi.tools.ant.WSConsumeTask.executeNonForked(WSConsumeTask.java:221)
[wsconsume]     at org.jboss.wsf.spi.tools.ant.WSConsumeTask.execute(WSConsumeTask.java:241)
[wsconsume]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[wsconsume]     at org.apache.tools.ant.Task.perform(Task.java:341)
[wsconsume]     at org.apache.tools.ant.Target.execute(Target.java:309)
[wsconsume]     at org.apache.tools.ant.Target.performTasks(Target.java:336)
[wsconsume]     at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[wsconsume]     at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[wsconsume]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
[wsconsume]     at org.apache.tools.ant.Main.start(Main.java:196)
[wsconsume]     at org.apache.tools.ant.Main.main(Main.java:235)

could you please help me.

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167458#4167458

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167458



More information about the jboss-user mailing list