Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Getting Exception :Problem: failed to create task or type arg in build.xml while creating webservice

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

please find my build.xml file

<project name="webservices-simple_client" default="all">
<!-- set global properties for this -->
<property name="wls.hostname" value="localhost" />
<property name="wls.port" value="8002" />
<property name="example-output" value="output" />
<property name="clientclass-dir" value="${example-output}/clientclass" />
<path id="client.class.path">
<pathelement path="${clientclass-dir}" />
<pathelement path="${java.class.path}" />
</path>
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
<target name="clean">
<delete dir="${clientclass-dir}" />
<echo message="Cleaning Completed" />
</target>
<target name="build-client">
<clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL"; destdir="${clientclass-dir}" />
<javac srcdir="${clientclass-dir}" destdir="${clientclass-dir}" includes="**/*.java" />
<echo message="Building Completed" />
</target>
<target name="run">
<echo message="Run Command Started" />
<arg line="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer"; />
</target>
<target name="all" depends="clean,build-client,run" />
</project>


=======================
I am getting below error while trying to generate webservice using wsdl definition with clientGen


Buildfile: D:\Raja1\Demo1\build\build.xml

clean:
[delete] Deleting directory D:\Raja1\Demo1\build\output\clientclass
[echo] Cleaning Completed

build-client:
[clientgen] Ignoring JAX-WS options - building a JAX-RPC client
[clientgen]
[clientgen] *********** jax-rpc clientgen attribute settings ***************
[clientgen]
[clientgen] wsdlURI: http://localhost:8002/parlayx21/presence/PresenceConsumer?WSDL
[clientgen] serviceName : null
[clientgen] packageName : null
[clientgen] destDir : D:\Raja1\Demo1\build\output\clientclass
[clientgen] handlerChainFile : null
[clientgen] generatePolicyMethods : false
[clientgen] autoDetectWrapped : true
[clientgen] jaxRPCWrappedArrayStyle : true
[clientgen] generateAsyncMethods : true
[clientgen]
[clientgen] *********** jax-rpc clientgen attribute settings end ***************
[clientgen] Package name is org.csapi.wsdl.parlayx.presence.consumer.v2_3.service
[clientgen] DestDir is D:\Raja1\Demo1\build\output\clientclass
[clientgen] class name is PresenceConsumer_Stub
[clientgen] service class name is PresenceConsumerService
[clientgen] Porttype name is PresenceConsumer
[clientgen] service impl name is PresenceConsumerService_Impl
[javac] Compiling 26 source files to D:\Raja1\Demo1\build\output\clientclass
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[echo] Building Completed

run:
[echo] Run Command Started

BUILD FAILED
D:\Raja1\Demo1\build\build.xml:23: Problem: failed to create task or type arg
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.


please guide me why the build is failed at <arg .../>

I am not understanding if it related to jar file or due to any other problem

Suggestions are most welcome .
 
    Bookmark Topic Watch Topic
  • New Topic