axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xi, Keying" <>
Subject RE: problem using wsdl2javaanttask
Date Tue, 02 Sep 2003 13:14:34 GMT
wsdl2java is not a core task that's defined in Ant. 
The way I did it is to have a separate taskdef.xml file that defines tasks like wsdl2java
and java2wsdl etc, then have your build.xml import taskdef.xml 

The taskdef.xml could look like this (change classpath to what you have defined):

  <taskdef name="wsdl2java" classname="">
        <classpath refid="build-classpath"/>

  <taskdef name="java2wsdl" classname="">
        <classpath refid="build-classpath"/>

In your build.xml, add the following lines after "<?xml version="1.0" ?>", assuming
the taskdef.xml is under the same directory as build.xml:

<!DOCTYPE project [      
        <!ENTITY taskdefs SYSTEM "file:taskdef.xml">

Then the following line:


If you need further reference, download the Axis source distribution and take a look. 

-----Original Message-----
From: James Black []
Sent: Tuesday, September 02, 2003 8:47 AM
Subject: re: problem using wsdl2javaanttask

  I am using ant version 1.5.4, but am having problems getting the 
taskdef to be properly defined.

  What I have, is:
<path id=:"axis.class.path">
    <fileset dir="/home/jblack/src/axis-1_1/lib">
        <include name="*.jar"/>

  <taskdef resource=""

  I get an error of
File:build.xml:35: taskdef clss cannot be found.

  I am curious what I may be doing wrong.

  I am also using JDK1..2.

  Thank you.

"We do not lose our identity in our relations with others; in part, at least, we achieve our
identity by those relations." Tony Blair, 1993

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003

Please note that LogicaCMG does not have control over content from,or availability of, this

View raw message