This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to generate webservice using clientgen in build.xml  RSS feed

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

Please find my build.xml

<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="Raja Completed cleaning" />
<target name="build-client">
<clientgen wsdl="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer?WSDL" destdir="${clientclass-dir}"/>
<echo message="Raja Completed cleaning sss" />
<javac srcdir="${clientclass-dir}" destdir="${clientclass-dir}" includes="**/*.java" />
<javac srcdir="src" destdir="${clientclass-dir}" includes="examples/webservices/simple_client/*.java" />
<target name="run">
<arg line="http://${wls.hostname}:${wls.port}/parlayx21/presence/PresenceConsumer" />
<target name="all" depends="clean,build-client,run" />

When I tried to build , i got the below error

I am using with eclipse EE and weblogic10.3

D:\Raja1\Demo1\build\build.xml:15: java.lang.NoSuchFieldError: METADATA_PACKAGE_GEN

This is occuring at build-client target ,

I did a lot of googling , but i could not find any one encountered with this problem, I am sure it is not a jar problem .

and ClientGen is recognized properly , because when i click ctrl+enter it is showing clientGen attributes .

please do some helpful to proceed further
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!