• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trying to generate webservice using clientgen in build.xml

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

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

When I tried to build , i got the below error

I am using with eclipse EE and weblogic10.3

BUILD FAILED
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic