File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Java2WsdlAntTask cannot be found using the classloader AntClassLoader Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Java2WsdlAntTask cannot be found using the classloader AntClassLoader" Watch "Java2WsdlAntTask cannot be found using the classloader AntClassLoader" New topic
Author

Java2WsdlAntTask cannot be found using the classloader AntClassLoader

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 420

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.


Regards
KumarRaja

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3206

You probably need to add the JAR that contains that ANT task to the CLASSPATH that ANT runs with yes.


Cheers, Martijn - Blog, Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1177

When you define the 'classpath' - you need to use <fileset ...> instead of <pathelement... >

e.g.

This message was edited 2 times. Last update was at by Rene Larsen



Regards, Rene Larsen
Dropbox Invite
 
 
subject: Java2WsdlAntTask cannot be found using the classloader AntClassLoader
 
developer file tools