Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java2WsdlAntTask cannot be found using the classloader AntClassLoader

 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I'm not sure, if this needs to be posted to Webservices forum or here, but since this is related to build.xml, I thought of putting my question here.

I have a project as below

HelloWorld
|
| ------- src (All my source code)
| ------- lib (All required axis 1.x jar files )
| ------- build (All compiled class files)
|------ build.xml (this is directly under HelloWorld)

Snippet from my build.xml is as follows


As evident from the build.xml, I'm trying to use ant tasks for generating WSDL and other artifacts using axis implementation. But my problem is, it won't run. When I run ant against this build.xml, I see the below error message



Is there anything I'm missing here. Do I need to have any other jars in my classpath.

Please advice.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You probably need to add the JAR that contains that ANT task to the CLASSPATH that ANT runs with yes.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you define the 'classpath' - you need to use <fileset ...> instead of <pathelement... >

e.g.
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic