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 "Hehl, Thomas" <Th...@acs-inc.com> on 2010/05/05 15:31:16 UTC

Ant help

Trying to set up axis2 for my ant project.

 

I managed to cobble together some instructions on how to do ant builds
to automatically create my WSDLs, but can't get it to work.

 

I added:

 

      

      <path id="lib.axis">

          <fileset dir="D:\javatools\axis2-1.5.1\lib" includes="*.jar"/>

      </path>

 

      <taskdef resource="axis-tasks.properties" classpathref="lib.axis"
/>

 

Then:

 

      <target name="wsdl" description="Build the WSDL files from the
services API"> 

    <axis-java2wsdl

      classname="com.acs.gs.juror.service.common.ValidationCodeService" 

 
implclass="com.acs.gs.juror.service.common.impl.ValidationCodeServiceImp
l"

     style= "rpc"

     namespace= "urn:http://www.acs-inc.com/AgileJuryWebService/"

     location=
"http://localhost:8080/AgileAury/services/AgileJuryWebService"

     output= "${wsdl.dir}/ValidationCodeService.wsdl "> 

    <!-- if when trawling our classes, axis-ant finds a class, we need 

    to tell it how to remap the name --> 

     <mapping namespace= "urn:com.acs.juror"

                                          package= "com.acs.juror"/> 

    </axis-java2wsdl> 

      </target>

 

But got:

 

Buildfile: D:\agile\agilejury-service\build.xml

  [taskdef] Could not load definitions from resource
axis-tasks.properties. It could not be found.

wsdl:

 

BUILD FAILED

D:\agile\agilejury-service\build.xml:137: Problem: failed to create task
or type axis-java2wsdl

Cause: The name is undefined.

Action: Check the spelling.

Action: Check that any custom tasks/types have been declared.

Action: Check that any <presetdef>/<macrodef> declarations have taken
place.

 

 

Total time: 30 seconds

 

Since it can't find the properties file. I couldn't find it in any of
the jars.

 

Has anyone done this?

 

Thom Hehl

Senior Development Specialist

Public Safety & Justice

Affiliated Computer Services, Inc.

A Xerox Company

1733 Harrodsburg Road

Lexington, KY 40504-3617

Tel 859.277.8800 x 144

Fax 859.277.2300