• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic