Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Posts: 14
  • Mark post as helpful
  • send pies
  • 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="" />
<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 .
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!