Martin Gainty wrote:
Hi Scott-

I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib 
and ran the samples.xbeans build.xml compile task

first I editted the build.xml to include the WSDL2Java class
vi build.xml
        <taskdef name="wsdl2java"
         classname="org.apache.axis2.wsdl.WSDL2Java"
         classpathref="classpath"/>

cd $AXIS2_HOME/samples/xbeans


compile:
No public execute() in class org.apache.axis2.wsdl.WSDL2Java

BUILD FAILED
C:\AXIS\Axis-2_1\src\axis\samples\xbeans\build.xml:61: No public execute() in 
class org.apache.axis2.wsdl.WSDL2Java

So it appears that class org.apache.axis2.wsdl.WSDL2Java not having execute() 
method will not allow the class to be taskdef'ed in Ant


That means it isnt an ant task. Ant will turn any class which implements public void execute() into a task, but not things that don't. Wsdl2Java has to be somewhere else.

In my copy of axis2 from a year ago, the axis-ant-plugin module has a class org.apache.axis2.tool.ant.AntCodegenTask. I do not know if this is what you want or not. I'd also point you at the axis user and then axis dev mail lists, as they are the people who know the code.

-steve



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to