You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Philippe Pham <pp...@synergylinkinc.com> on 2002/06/21 20:59:23 UTC
AXIS
To whom it may concern,
I just download the AXIS package from Apache website. I'm specially interested in the project that convert a WSDL file to JAVA files and vice versa. This is really a great tool. I like it very much.
There is one little thing that I'd like to ask you for help. That is, I try rebuild the project using the following command:
java org.apache.tools.ant.Main <target>
where target:
- compile -> creates the "axis.jar" package in "./build/lib"
- javadocs -> creates the javadocs in "./build/javadocs"
- dist -> creates the complete binary distribution
- srcdist -> creates the complete src distribution
- functional-tests -> attempts to build Ant task and then run client-server functional test
Unfortunately it fails to do it (on my system, WIN2K Advanced Server). The error message that shows at the DOS command prompt is:
C:\xml-axis\java>java org.apache.tools.ant.Main compile
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
That means that I don't have the 'ant' utility on my system or I haven't configure my system correctly.
Then I download the 'ant' utility and try to build it again, it still fails. Here is the error message:
C:\xml-axis\java>ant compile
Buildfile: build.xml
setenv:
BUILD FAILED
C:\xml-axis\java\build.xml:170: Could not create task of type: condition. Common solutions are to use taskdef to declare your task, or, if this is an optional task, to put the optional.jar in the lib directory of your ant installation (ANT_HOME).
Total time: 0 seconds
So could you please show me how to set up the system to build the axis project?
Sincerely
Philippe Pham
Re: AXIS
Posted by Steve Loughran <st...@iseran.com>.
you should download the latest ant 1.5 beta. Do it tomorrow and you will get
beta-3. As well as having the <condition> task, it has more helpful error
messages, in this case mentioning 'you are using an older version of ant' as
one of the possibilities
----- Original Message -----
BUILD FAILED
C:\xml-axis\java\build.xml:170: Could not create task of type:
condition. Common solutions are to use taskdef to declare your task,
or, if this is an optional task, to put the optional.jar in the lib
directory of your ant installation (ANT_HOME).
AW: AXIS
Posted by Till Woerner <ti...@twoerner.de>.
Hi,
perhaps you should try the solution the error message tells you ;-)
You can download the optional tasks file here:
http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/jakarta-
ant-1.4.1-optional.jar
put this file in your ANT_HOME\lib directory and see if it works...
Good luck,
Till
-----Ursprüngliche Nachricht-----
Von: Philippe Pham [mailto:ppham@synergylinkinc.com]
Gesendet: Freitag, 21. Juni 2002 20:59
An: axis-user@xml.apache.org
Betreff: AXIS
To whom it may concern,
I just download the AXIS package from Apache website. I'm specially
interested in the project that convert a WSDL file to JAVA files and
vice versa. This is really a great tool. I like it very much.
There is one little thing that I'd like to ask you for help. That is, I
try rebuild the project using the following command:
java org.apache.tools.ant.Main <target>
where target:
- compile -> creates the "axis.jar" package in "./build/lib"
- javadocs -> creates the javadocs in "./build/javadocs"
- dist -> creates the complete binary distribution
- srcdist -> creates the complete src distribution
- functional-tests -> attempts to build Ant task and then run
client-server functional test
Unfortunately it fails to do it (on my system, WIN2K Advanced Server).
The error message that shows at the DOS command prompt is:
C:\xml-axis\java>java org.apache.tools.ant.Main compile
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/Main
That means that I don't have the 'ant' utility on my system or I haven't
configure my system correctly.
Then I download the 'ant' utility and try to build it again, it still
fails. Here is the error message:
C:\xml-axis\java>ant compile
Buildfile: build.xml
setenv:
BUILD FAILED
C:\xml-axis\java\build.xml:170: Could not create task of type:
condition. Common solutions are to use taskdef to declare your
task, or, if this is an optional task, to put the optional.jar in the
lib directory of your ant installation (ANT_HOME).
Total time: 0 seconds
So could you please show me how to set up the system to build the axis
project?
Sincerely
Philippe Pham