Hi Cory,

I think that Keith is right.  If you run ant with the "-verbose" flag, it
will show you more information about the exception being thrown, and you
will probably see that it can't load Wsdl2javaAntTask because it can't load
a class that Wsdl2javaAntTask requires.  At least that's what I encountered.

James

-----Original Message-----
From: Keith Hatton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5: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.j
ar;c
:\devtools\jakarta-ant-1.5.1\lib\ant.jar;c:\devtools\axis-1_1beta\lib\axis-a
nt.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.j
ar;c
:\devtools\jakarta-ant-1.5.1\lib\ant.jar;
-----------------------------------------------------

Cory

<<attachment: winmail.dat>>

Reply via email to