Web Services Client generation using WSDL2Java on the commandline

A

Akaketwa

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(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)
Caused by: java.lang.NoClassDefFoundError:
com/ibm/wtp/emf/xml/RendererFactory
at
com.ibm.ws.webservices.wsdl.mapping.MappingMetaData.<init>(MappingMet
aData.java:129)
at com.ibm.ws.webservices.wsdl.toJava.Emitter.<init>(Emitter.java:247)
at
com.ibm.ws.webservices.tools.WSDL2Java.createParser(WSDL2Java.java:29
5)
at com.ibm.ws.webservices.wsdl.WSDL2.<init>(WSDL2.java:130)
at com.ibm.ws.webservices.tools.WSDL2Java.<init>(WSDL2Java.java:284)
at com.ibm.ws.webservices.tools.WSDL2Java.main(WSDL2Java.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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top