Keith,

Thanks for the suggestion...I am, however, including everything in AXIS_HOME/lib to no 
avail.  Perhaps I'm missing something outside of the axis libraries?

    
    <taskdef resource="axis-tasks.properties">
        <classpath>
            <fileset dir="${axisHome}/lib">
                <include name="*.jar"/>
            </fileset>
        </classpath>
    </taskdef>

build.xml:9: taskdef class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be 
found

The thing that's confusing me is that it's finding the properties file, parsing it, 
and attempting to reconcile the class (in the same damn jar) and it can't.

Ack,
Cory


-----Original Message-----
From: Keith Hatton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: RE: Axis TaskDef


I'm stabbing in the dark, but are you sure that axis-ant.jar is the only file you need 
to add to the classpath? Sometimes "class not found"-type error messages are not 
descriptive of the actual problem, to say the least (i.e. maybe Wsdl2javaAntTask is 
there but can't be loaded because some other class it depends on isn't found).

Keith


-----Original Message-----
From: Cory Wilkerson [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 20:00
To: [EMAIL PROTECTED]
Subject: Axis TaskDef


I realize this isn't an ant list...but I thought someone may have encountered this:

-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project name="axis" basedir="." default="init">
    <taskdef resource="axis-tasks.properties"/>
</project>

BUILD FAILED
build.xml:3: taskdef class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be 
found

If I have ant dump it's classpath prior to execution...the axis-ant.jar is clearly in 
the task path:

LOCAL CLASSPATH=c:\devtools\jakarta-ant-1.5.1\lib\xml-apis.jar;c:\devtools\jakar
ta-ant-1.5.1\lib\xercesImpl.jar;c:\devtools\jakarta-ant-1.5.1\lib\optional.jar;c
:\devtools\jakarta-ant-1.5.1\lib\ant.jar;c:\devtools\axis-1_1beta\lib\axis-ant.jar
-----------------------------------------------------

Perhaps I'm using the taskdef wrong??  If I specify the classpath in the task and 
remove it 
from ant's classpath I see the same issue.   It's finding the properties file...just 
not finding
the associated classes.

-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project name="axis" basedir="." default="init">
    <taskdef resource="axis-tasks.properties" 
classpath="C:/DEVTOOLS/axis-1_1beta/lib/axis-ant.jar"/>
</project>

BUILD FAILED
build.xml:3: taskdef class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be 
found

LOCAL CLASSPATH=c:\devtools\jakarta-ant-1.5.1\lib\xml-apis.jar;c:\devtools\jakar
ta-ant-1.5.1\lib\xercesImpl.jar;c:\devtools\jakarta-ant-1.5.1\lib\optional.jar;c
:\devtools\jakarta-ant-1.5.1\lib\ant.jar;
-----------------------------------------------------

Cory


Reply via email to