It's not a secret anymore!
The moose likes BEA/Weblogic and the fly likes Trying to generate webservice using clientgen in build.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Trying to generate webservice using clientgen in build.xml " Watch "Trying to generate webservice using clientgen in build.xml " New topic

Trying to generate webservice using clientgen in build.xml

rajabhayya Sekharbhayya

Joined: Oct 23, 2008
Posts: 14

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
I agree. Here's the link:
subject: Trying to generate webservice using clientgen in build.xml
It's not a secret anymore!