Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ant WSConsume Task  RSS feed

 
Lydia Vaughan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to utilized the wsconsume tool of jbossws 3.3.1 native and I'm getting the following error msg:

[wsconsume] Consuming wsdl: http://localhost:8080/greeting?wsdl
[wsconsume] Command invoked: org.jboss.wsf.spi.tools.cmd.WSConsume ETC...ETC
[wsconsume] Error: Could not import. (use --verbose to see full traces)
[wsconsume] java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportTool
[wsconsume] at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:244)
[wsconsume] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:240)
[wsconsume] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:86)
[wsconsume] Caused by: java.lang.ClassNotFoundException: com.sun.tools.ws.wscompile.WsimportTool
[wsconsume] at java.net.URLClassLoader$1.run(Unknown Source)
[wsconsume] at java.security.AccessController.doPrivileged(Native Method)
[wsconsume] at java.net.URLClassLoader.findClass(Unknown Source)
[wsconsume] at java.lang.ClassLoader.loadClass(Unknown Source)
[wsconsume] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[wsconsume] at java.lang.ClassLoader.loadClass(Unknown Source)
[wsconsume] ... 3 more

BUILD FAILED
P:\webservice-test\build.xml:45: Could not invoke WSConsumeTask

My build target is below:

<target name="consume">
<taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
<classpath refid="class.path"/>
</taskdef>
<wsconsume
fork="true"
verbose="true"
destdir="output"
keeep="true"
wsdl="wsdl URLl">
</wsconsume>
</target>


Any help would be greatly appreciated

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!