I'm trying to generate WSDL with ant and WebSphere 5.1.2. The problem is that Java2WSDL task can't find the class. I believe I tried everything, but keep getting [Java2WSDLTask] java.lang.ClassNotFoundException: Multiconn.Cobol.Web.Services.F oreignCurrencyConvertor_SEI [Java2WSDLTask] at com.ibm.ws.webservices.wsdl.fromJava.ClassFactory.for Name(ClassFactory.java:82)
How basically I should to define the location of file to be processed?
Here is what I tried: <taskdef name="Java2WSDLTask"<br /> classname="com.ibm.websphere.ant.tasks.Java2WSDL"<br /> classpath="d:/temp/conv2/WEB-INF/classes"> <classpath> <pathelement path="d:/temp/conv2/lib/JeXperanto.jar"/> <pathelement path="d:/temp/conv2/WEB-INF/classes"/> </classpath> </taskdef>
I'm running the script with ws_ant.bat. The class is in the CLASSPATH too. What's teh proper way to define classpath for the Java2WSDL task? -- Oleg Tkachenko http://blog.tkachenko.com
there is a chapter dedicated to running web services using apache axis and ant from the manning book "Java Development with ANT". It explains clearly your problem. This chapter can be freely downloaded. Give it a try it ...
posted 14 years ago
Huge thanks, Nritya!
I will suppress my every urge. But not this shameless plug: