Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to generate webservice using clientgen in build.xml

 
rajabhayya Sekharbhayya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic