my dog learned polymorphism*
The moose likes BEA/Weblogic and the fly likes Getting Exception :Problem: failed to create task or type arg in build.xml while creating webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Getting Exception :Problem: failed to create task or type arg in build.xml while creating webservice" Watch "Getting Exception :Problem: failed to create task or type arg in build.xml while creating webservice" New topic
Author

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

rajabhayya Sekharbhayya
Greenhorn

Joined: Oct 23, 2008
Posts: 14
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 .
 
jQuery in Action, 2nd edition
 
subject: Getting Exception :Problem: failed to create task or type arg in build.xml while creating webservice
 
Similar Threads
Builded file using clientgen does not have my jar files
Ant build - With weblogic 10
Builded file using clientgen does not have my jar files
Trying to generate webservice using clientgen in build.xml
Please tell how to authenticate user for calling webservice using JAX-WS