• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!