Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Classpath for the Java2WSDL task

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

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
 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Oleg Tkachenko
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Huge thanks, Nritya!
 
I will suppress my every urge. But not this shameless plug:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!