• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin

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

Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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}" />
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
<target name="clean">
<delete dir="${clientclass-dir}" />
<echo message="Cleaning Completed" />
<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 name="run">
<echo message="Run Command Started" />
<arg line="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer" />
<target name="all" depends="clean,build-client,run" />

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

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

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

[clientgen] Ignoring JAX-WS options - building a JAX-RPC client
[clientgen] *********** jax-rpc clientgen attribute settings ***************
[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] *********** 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

[echo] Run Command Started

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 .
What's a year in metric? Do you know this metric stuff tiny ad?
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic