Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Web Services Client generation using WSDL2Java on the commandline

Reply
Thread Tools

Web Services Client generation using WSDL2Java on the commandline

 
 
Akaketwa
Guest
Posts: n/a
 
      01-12-2007
I use the following command on the commandline in windows. The wsdl
file is a valid one. When i run the command i get errors below. How do
i cater for the InvocationTargetException being thrown.

C:\TEMP\Client>call "%WAS_HOME%\bin\WSDL2Java" -role client -verbose
-output . H
elloWorld.wsdl
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:5
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:190)
Caused by: java.lang.NoClassDefFoundError:
com/ibm/wtp/emf/xml/RendererFactory
at
com.ibm.ws.webservices.wsdl.mapping.MappingMetaDat a.<init>(MappingMet
aData.java:129)
at com.ibm.ws.webservices.wsdl.toJava.Emitter.<init>( Emitter.java:247)
at
com.ibm.ws.webservices.tools.WSDL2Java.createParse r(WSDL2Java.java:29
5)
at com.ibm.ws.webservices.wsdl.WSDL2.<init>(WSDL2.jav a:130)
at com.ibm.ws.webservices.tools.WSDL2Java.<init>(WSDL 2Java.java:284)
at com.ibm.ws.webservices.tools.WSDL2Java.main(WSDL2J ava.java:470)
.... 6 more

I've tried to figure out where the class
com/ibm/wtp/emf/xml/RendererFactory can be found so as to include it in
the classpath, but could not find it. Your assistance will bne greatly
appreciated...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic authentication in axis wsdl2java generated client code bill turner Java 1 03-06-2008 05:14 PM
WSDL2Java ANT script, no proxy Class generation? victor.s.email@gmail.com Java 0 01-22-2008 07:50 PM
web service skeleton from extended wsdl (wsdl2java) Franz Demmel Java 0 04-13-2006 12:22 PM
How .NET web services client handles exceptions from Java web services? John ASP .Net Web Services 4 03-31-2006 10:13 PM
wsdl2java: what to do with client-side (re-)generated java bean classes dukehoops Java 0 06-27-2005 07:26 PM



Advertisments